-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory Optimization - ICE Agent Stats (#1947) #2074
base: develop
Are you sure you want to change the base?
Conversation
* Change params size * Use dyanmic allocation and flag for ice stats * Debug 1 * Revert "Debug 1" This reverts commit ad7d02f. * Revert "Use dyanmic allocation and flag for ice stats" This reverts commit bf9a2ee. * Working version * enable flag in samples * Add unit test * Fix bug * README for the flag * Update readme
614099b
to
81d87b2
Compare
@@ -115,6 +116,10 @@ if (ENABLE_KVS_THREADPOOL) | |||
add_definitions(-DENABLE_KVS_THREADPOOL) | |||
endif() | |||
|
|||
if (ENABLE_STATS_CALCULATION_CONTROL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be helpful to include a note explaining that this modification is for memory optimization, along with an estimate of the memory savings if this feature were disabled?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have "Disabling these stats may lead to reductions in memory use." in the ReadMe. Will leave this comment open so we can consider adding a memory saving estimation for all of these, perhaps after more testing is done?
Issue #, if available:
What was changed?
ENABLE_STATS_CALCULATION_CONTROL
CMake option to support enabling/disabling stats at runtime.Why was it changed?
enableIceStats
value is used as intended, a compile-time flag is required to enable its use for run-time control over enabling/disabling stats.enableIceStats
in the case that it was not initialized.How was it changed?
#ifdef
's were added to check for theENABLE_STATS_CALCULATION_CONTROL
flag before using theenableIceStats
value.What testing was done for the changes?
ENABLE_STATS_CALCULATION_CONTROL
=FALSE andenableIceStats
=TRUEENABLE_STATS_CALCULATION_CONTROL
=FALSE andenableIceStats
=FALSEENABLE_STATS_CALCULATION_CONTROL
=TRUE andenableIceStats
=TRUEENABLE_STATS_CALCULATION_CONTROL
=TRUE andenableIceStats
=FALSEBy submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.