Implement AggregatableHistogramTimer and use it to measure how much time
authorvogelheim <vogelheim@chromium.org>
Thu, 22 Jan 2015 18:38:19 +0000 (10:38 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 22 Jan 2015 18:38:29 +0000 (18:38 +0000)
commit6f9d60cc6f78467ebc44300213c07dc21832d10b
tree977806653484e16d6244b1b32528587b996edd15
parent40973187925838554e0dc25701ffda38f0e19db2
Implement AggregatableHistogramTimer and use it to measure how much time
of running a script is really spent in compilation. That is, sum up the
total time spent compiling (parsing + compile proper) within a run call
as seen through the API.

@jochen: So many questions:
- Is it ok to re-use V8.CompileLazy?
  This measures something a little different.
- clang-format does funny things to the huge macro definitions.
  I accepted clang-format changes for all code, but reverted for
  the #define orgies in counters.h. ok?
- Am I measuring the right thing. That is, are Aggregat[ing|ed]TimerScope
  in the right place?

I'll fiddle a bit more with this to see if it does the right thing. Would
be happy if you could still review now-ish.

BUG=

Review URL: https://codereview.chromium.org/790413004

Cr-Commit-Position: refs/heads/master@{#26226}
src/api.cc
src/compiler.cc
src/counters.cc
src/counters.h