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

Side by Side Diff: gin/public/v8_platform.h

Issue 1742603004: Use Scoped version of AddTraceEvent for V8 Tracing in Chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | gin/v8_platform.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium 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 GIN_PUBLIC_V8_PLATFORM_H_ 5 #ifndef GIN_PUBLIC_V8_PLATFORM_H_
6 #define GIN_PUBLIC_V8_PLATFORM_H_ 6 #define GIN_PUBLIC_V8_PLATFORM_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 18 matching lines...) Expand all
29 void CallIdleOnForegroundThread(v8::Isolate* isolate, 29 void CallIdleOnForegroundThread(v8::Isolate* isolate,
30 v8::IdleTask* task) override; 30 v8::IdleTask* task) override;
31 bool IdleTasksEnabled(v8::Isolate* isolate) override; 31 bool IdleTasksEnabled(v8::Isolate* isolate) override;
32 double MonotonicallyIncreasingTime() override; 32 double MonotonicallyIncreasingTime() override;
33 const uint8_t* GetCategoryGroupEnabled(const char* name) override; 33 const uint8_t* GetCategoryGroupEnabled(const char* name) override;
34 const char* GetCategoryGroupName( 34 const char* GetCategoryGroupName(
35 const uint8_t* category_enabled_flag) override; 35 const uint8_t* category_enabled_flag) override;
36 uint64_t AddTraceEvent(char phase, 36 uint64_t AddTraceEvent(char phase,
37 const uint8_t* category_enabled_flag, 37 const uint8_t* category_enabled_flag,
38 const char* name, 38 const char* name,
39 const char* scope,
39 uint64_t id, 40 uint64_t id,
40 uint64_t bind_id, 41 uint64_t bind_id,
41 int32_t num_args, 42 int32_t num_args,
42 const char** arg_names, 43 const char** arg_names,
43 const uint8_t* arg_types, 44 const uint8_t* arg_types,
44 const uint64_t* arg_values, 45 const uint64_t* arg_values,
45 unsigned int flags) override; 46 unsigned int flags) override;
46 void UpdateTraceEventDuration(const uint8_t* category_enabled_flag, 47 void UpdateTraceEventDuration(const uint8_t* category_enabled_flag,
47 const char* name, 48 const char* name,
48 uint64_t handle) override; 49 uint64_t handle) override;
49 50
50 private: 51 private:
51 friend struct base::DefaultLazyInstanceTraits<V8Platform>; 52 friend struct base::DefaultLazyInstanceTraits<V8Platform>;
52 53
53 V8Platform(); 54 V8Platform();
54 ~V8Platform() override; 55 ~V8Platform() override;
55 56
56 DISALLOW_COPY_AND_ASSIGN(V8Platform); 57 DISALLOW_COPY_AND_ASSIGN(V8Platform);
57 }; 58 };
58 59
59 } // namespace gin 60 } // namespace gin
60 61
61 #endif // GIN_PUBLIC_V8_PLATFORM_H_ 62 #endif // GIN_PUBLIC_V8_PLATFORM_H_
OLDNEW
« no previous file with comments | « no previous file | gin/v8_platform.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698