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

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

Issue 2188193002: [api] Remove HistogramTimerScope from high-frequency API-Functions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: make TimerEventScope inlineable Created 4 years, 4 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/log.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 #ifndef V8_LOG_INL_H_ 5 #ifndef V8_LOG_INL_H_
6 #define V8_LOG_INL_H_ 6 #define V8_LOG_INL_H_
7 7
8 #include "src/log.h" 8 #include "src/log.h"
9 #include "src/isolate.h" 9 #include "src/isolate.h"
10 #include "src/objects-inl.h" 10 #include "src/objects-inl.h"
(...skipping 21 matching lines...) Expand all
32 bool expose_to_api) { 32 bool expose_to_api) {
33 if (isolate->event_logger()) { 33 if (isolate->event_logger()) {
34 if (isolate->event_logger() == DefaultEventLoggerSentinel) { 34 if (isolate->event_logger() == DefaultEventLoggerSentinel) {
35 LOG(isolate, TimerEvent(se, name)); 35 LOG(isolate, TimerEvent(se, name));
36 } else if (expose_to_api) { 36 } else if (expose_to_api) {
37 isolate->event_logger()(name, se); 37 isolate->event_logger()(name, se);
38 } 38 }
39 } 39 }
40 } 40 }
41 41
42 template <class TimerEvent>
43 void TimerEventScope<TimerEvent>::LogTimerEvent(Logger::StartEnd se) {
44 Logger::CallEventLogger(isolate_, TimerEvent::name(), se,
45 TimerEvent::expose_to_api());
46 }
47
42 } // namespace internal 48 } // namespace internal
43 } // namespace v8 49 } // namespace v8
44 50
45 #endif // V8_LOG_INL_H_ 51 #endif // V8_LOG_INL_H_
OLDNEW
« no previous file with comments | « src/log.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698