OSDN Git Service

Fix compilation statistics collection in inliner.
authorVladimir Marko <vmarko@google.com>
Thu, 23 Feb 2017 18:56:13 +0000 (18:56 +0000)
committerVladimir Marko <vmarko@google.com>
Thu, 23 Feb 2017 19:06:46 +0000 (19:06 +0000)
commit438709f4f2454854f09a3b5c058834bbf772aaa8
tree1663b23c67e3eb10e4d91b5d8a63be9239faa20f
parentf773e851c620d253d02e81a3e2ae115c5862d73c
Fix compilation statistics collection in inliner.

Stats from callee graph builder were not merged into main
stats and stats for callee graph optimizations were counted
even when the callee graph was eventually rejected.

Allocate the callee graph statistics on the arena.
Measured compilation of a big app using heaptrack:
  bytes allocated in total (ignoring deallocations): 3.77GB -> 3.37GB
  calls to allocation functions: 10650510 -> 8203129

Test: testrunner.py --host
Test: Stats change in the expected direction for an app.
Bug: 34053922
Change-Id: I605280d262b86af14b847acf3bb6dc077b749cc0
compiler/optimizing/inliner.cc
compiler/optimizing/inliner.h
compiler/optimizing/optimizing_compiler_stats.h