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

Side by Side Diff: src/counters-inl.h

Issue 1973473002: [runtime] Record runtime call stats for Map::TransitionTo*Property, JSObject::OptimizeAsPrototype t… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@handler-counters2
Patch Set: Addressing comments and rebasing 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.cc ('k') | src/lookup.cc » ('j') | src/lookup.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef V8_COUNTERS_INL_H_
6 #define V8_COUNTERS_INL_H_
7
8 #include "src/counters.h"
9
10 namespace v8 {
11 namespace internal {
12
13 RuntimeCallTimerScope::RuntimeCallTimerScope(
14 HeapObject* heap_object, RuntimeCallStats::CounterId counter_id) {
15 if (V8_UNLIKELY(FLAG_runtime_call_stats)) {
16 isolate_ = heap_object->GetIsolate();
17 RuntimeCallStats::Enter(isolate_, &timer_, counter_id);
18 }
19 }
20
21 } // namespace internal
22 } // namespace v8
23
24 #endif // V8_COUNTERS_INL_H_
OLDNEW
« no previous file with comments | « src/counters.cc ('k') | src/lookup.cc » ('j') | src/lookup.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698