Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: src/counters.cc

Issue 1923893002: [counters] Annotate v8 with more runtime call counters. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: merging master Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/counters.h ('k') | src/deoptimizer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/counters.h" 5 #include "src/counters.h"
6 6
7 #include <iomanip> 7 #include <iomanip>
8 8
9 #include "src/base/platform/platform.h" 9 #include "src/base/platform/platform.h"
10 #include "src/isolate.h" 10 #include "src/isolate.h"
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 #undef PRINT_COUNTER 305 #undef PRINT_COUNTER
306 306
307 #define PRINT_COUNTER(name, nargs, ressize) entries.Add(&this->Runtime_##name); 307 #define PRINT_COUNTER(name, nargs, ressize) entries.Add(&this->Runtime_##name);
308 FOR_EACH_INTRINSIC(PRINT_COUNTER) 308 FOR_EACH_INTRINSIC(PRINT_COUNTER)
309 #undef PRINT_COUNTER 309 #undef PRINT_COUNTER
310 310
311 #define PRINT_COUNTER(name, type) entries.Add(&this->Builtin_##name); 311 #define PRINT_COUNTER(name, type) entries.Add(&this->Builtin_##name);
312 BUILTIN_LIST_C(PRINT_COUNTER) 312 BUILTIN_LIST_C(PRINT_COUNTER)
313 #undef PRINT_COUNTER 313 #undef PRINT_COUNTER
314 314
315 #define PRINT_COUNTER(name) entries.Add(&this->API_##name);
316 FOR_EACH_API_COUNTER(PRINT_COUNTER)
317 #undef PRINT_COUNTER
318
315 #define PRINT_COUNTER(name) entries.Add(&this->Handler_##name); 319 #define PRINT_COUNTER(name) entries.Add(&this->Handler_##name);
316 FOR_EACH_HANDLER_COUNTER(PRINT_COUNTER) 320 FOR_EACH_HANDLER_COUNTER(PRINT_COUNTER)
317 #undef PRINT_COUNTER 321 #undef PRINT_COUNTER
318 322
319 entries.Print(os); 323 entries.Print(os);
320 } 324 }
321 325
322 void RuntimeCallStats::Reset() { 326 void RuntimeCallStats::Reset() {
323 if (!FLAG_runtime_call_stats) return; 327 if (!FLAG_runtime_call_stats) return;
324 #define RESET_COUNTER(name, nargs, ressize) this->Runtime_##name.Reset(); 328 #define RESET_COUNTER(name) this->name.Reset();
329 FOR_EACH_MANUAL_COUNTER(RESET_COUNTER)
330 #undef RESET_COUNTER
331
332 #define RESET_COUNTER(name, nargs, result_size) this->Runtime_##name.Reset();
325 FOR_EACH_INTRINSIC(RESET_COUNTER) 333 FOR_EACH_INTRINSIC(RESET_COUNTER)
326 #undef RESET_COUNTER 334 #undef RESET_COUNTER
335
327 #define RESET_COUNTER(name, type) this->Builtin_##name.Reset(); 336 #define RESET_COUNTER(name, type) this->Builtin_##name.Reset();
328 BUILTIN_LIST_C(RESET_COUNTER) 337 BUILTIN_LIST_C(RESET_COUNTER)
329 #undef RESET_COUNTER 338 #undef RESET_COUNTER
330 this->ExternalCallback.Reset(); 339
331 this->GC.Reset(); 340 #define RESET_COUNTER(name) this->API_##name.Reset();
332 this->UnexpectedStubMiss.Reset(); 341 FOR_EACH_API_COUNTER(RESET_COUNTER)
342 #undef RESET_COUNTER
343
344 #define RESET_COUNTER(name) this->Handler_##name.Reset();
345 FOR_EACH_HANDLER_COUNTER(RESET_COUNTER)
346 #undef RESET_COUNTER
333 } 347 }
334 348
335 } // namespace internal 349 } // namespace internal
336 } // namespace v8 350 } // namespace v8
OLDNEW
« no previous file with comments | « src/counters.h ('k') | src/deoptimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698