summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorCalin Juravle <calin@google.com>2016-04-29 16:44:11 +0100
committerCalin Juravle <calin@google.com>2016-05-17 00:16:55 +0100
commita26389234ac66a4a5042c7bf7195c6531663d24d (patch)
treecd33279ec9285e777fc3023473ee9211a7b9425b /compiler/optimizing/graph_visualizer.cc
parent31e61f1d0aeb2c85ebddc7cd0cc3d7f1aea4014e (diff)
Adjust ProfileSaver strategy
Change to a notification based strategy (instead of polling): - the JIT notifies the ProfileSaver everytime it attempts a compilation or generate (in a task) a ProfileInfo object for the method - once a certain number of hot methods notification are received, ProfileSaver wakes up the thread to do the analysis - a wake up does not equal to I/O since the during processing we might realized that's actually not enough new data. - ProfileSaver throtles the request and ensures it doesn't do the processing more often than kMinSavePeriodNs. The new strategy avoids waking the thread unnecessary during extended idle periods when we don't JIT. Bug: 26815940 (cherry picked from commit 5fbb0fe0625a1f76aa33cd78ccf1a17b00d8f6d1) Change-Id: Ifbac3a53c025e00a3faab6784bbfa679c6b42acb
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions