summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2015-01-08 16:28:08 -0800
committerMathieu Chartier <mathieuc@google.com>2015-01-09 15:04:27 -0800
commitad466adf38db74a9840659626858196091151a64 (patch)
treefeb296965a8a9659787a949e8e9aca0a7180774c /compiler/optimizing/graph_visualizer.cc
parent46af48acf4221a7f819d58dfffb576d0523ae285 (diff)
Change hprof to use streaming
Previously, we compute the whole hprof dump in memory resulting in > 50MB of memory usage for some apps (such as maps). This could cause the app to get killed by the low memory killer. The solution works by doing the dump in 2 passes. The first pass calculates the size of the dump. The second pass starts by sending the DDMS header with the correct size, then does the rest of the hprof dump by streaming and sending data one HprofRecord at a time. Bug: 18921793 Change-Id: I7dd9f5cfe49799ba268095c994a8c2eb1fe493df
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions