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

Unified Diff: src/profiler/profile-generator.h

Issue 2105943002: Expose TickSample and its APIs in v8-profiler.h (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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: src/profiler/profile-generator.h
diff --git a/src/profiler/profile-generator.h b/src/profiler/profile-generator.h
index fdd87f336f18ddc5ed0c3a86f3a601a02adead0b..35037ca2085e935538907ea40382841e91e7b299 100644
--- a/src/profiler/profile-generator.h
+++ b/src/profiler/profile-generator.h
@@ -6,13 +6,15 @@
#define V8_PROFILER_PROFILE_GENERATOR_H_
#include <map>
-#include "include/v8-profiler.h"
#include "src/allocation.h"
#include "src/base/hashmap.h"
#include "src/compiler.h"
#include "src/profiler/strings-storage.h"
namespace v8 {
+
+struct TickSample;
+
namespace internal {
// Provides a mapping from the offsets within generated code to
@@ -367,7 +369,8 @@ class ProfileGenerator {
public:
explicit ProfileGenerator(CpuProfilesCollection* profiles);
- void RecordTickSample(const TickSample& sample);
+ void RecordTickSample(const TickSample& sample,
+ const base::TimeTicks& timestamp);
CodeMap* code_map() { return &code_map_; }

Powered by Google App Engine
This is Rietveld 408576698