summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
diff options
context:
space:
mode:
authorTerry Wang <tytytyww@google.com>2021-07-01 19:11:39 -0700
committerTerry Wang <tytytyww@google.com>2021-07-09 12:09:10 -0700
commitda0e9a9b37558bbbf4b1e7e3c249f22c8b474db1 (patch)
tree56e773518239a6778247db31520876843ca87033 /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
parent733537f1a6b405027e18876b86666a07243f1e16 (diff)
Add check for optimize after each mutation operation.
Optimize is an important job for AppSearch to work properly. It could collect garbage and release resources. Without it, the garbage resource will last forever and the device's space will be fulled up by zombie documents. The algorithm to trigger optimize is: 1: Query garbage resource info after a batch of mutation operations. 2: Only trigger optimize if there are enough resource could be released. The behavior exists in AppSearch Jetpack for a while and working properly for our Jetpack dogfooders. Bug: 175255572 Test: FrameworkOptimizeStrategyTest Test: AppSearchConfigTest Test: AppSearchImplTest Change-Id: Ib7ae475cc035d1b69969df1e22ac409895e0e3fa
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions