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

Unified Diff: include/v8-platform.h

Issue 988893003: Implement tracing interface for v8 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove v8-tracing in favor of v8-platform, make passing Isolate* explicit, still WIP Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: include/v8-platform.h
diff --git a/include/v8-platform.h b/include/v8-platform.h
index c6cba0f982929aa8795e214c89f9fc1adc4ffb11..374fd9da26393e6ed0240b458c411a775407ac82 100644
--- a/include/v8-platform.h
+++ b/include/v8-platform.h
@@ -5,6 +5,8 @@
#ifndef V8_V8_PLATFORM_H_
#define V8_V8_PLATFORM_H_
+#include <stdint.h>
+
namespace v8 {
class Isolate;
@@ -107,6 +109,21 @@ class Platform {
* the epoch.
**/
virtual double MonotonicallyIncreasingTime() = 0;
+
+ virtual const uint8_t* GetCategoryGroupEnabled(const char* name) = 0;
+ virtual const char* GetCategoryGroupName(
+ const uint8_t* categoryEnabledFlag) = 0;
+
+ virtual uint64_t AddTraceEvent(char phase, const uint8_t* categoryEnabledFlag,
+ const char* name, uint64_t id,
+ uint64_t context_id, uint64_t bind_id,
+ int32_t numArgs, const char** argNames,
+ const uint8_t* argTypes,
+ const uint64_t* argValues,
+ unsigned int flags) = 0;
+
+ virtual void UpdateTraceEventDuration(const uint8_t* categoryEnabledFlag,
+ const char* name, uint64_t handle) = 0;
noordhuis 2015/10/07 18:31:54 These really need elucidating comments, either inl
fmeawad 2015/11/19 02:00:46 Done
};
} // namespace v8

Powered by Google App Engine
This is Rietveld 408576698