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

Unified Diff: src/v8.cc

Issue 2471583004: [Tracing] Make TracingCategoryObserver v8 internal. (Closed)
Patch Set: use unique_ptr Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: src/v8.cc
diff --git a/src/v8.cc b/src/v8.cc
index 08796f3f0e330b3817e88cd4a67ee849eb1f5e20..7f0230aa4caff3adfe78fe18f56405b380741a07 100644
--- a/src/v8.cc
+++ b/src/v8.cc
@@ -20,7 +20,7 @@
#include "src/runtime-profiler.h"
#include "src/snapshot/natives.h"
#include "src/snapshot/snapshot.h"
-
+#include "src/tracing/tracing-category-observer.h"
namespace v8 {
namespace internal {
@@ -94,11 +94,13 @@ void V8::InitializePlatform(v8::Platform* platform) {
CHECK(!platform_);
CHECK(platform);
platform_ = platform;
+ v8::tracing::TracingCategoryObserver::SetUp();
}
void V8::ShutdownPlatform() {
CHECK(platform_);
+ v8::tracing::TracingCategoryObserver::TearDown();
platform_ = NULL;
}
« src/d8.cc ('K') | « src/tracing/tracing-category-observer.cc ('k') | src/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698