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

Unified Diff: src/cpu-profiler.h

Issue 358363002: Move platform abstraction to base library (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 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
« src/base/macros.h ('K') | « src/cpu.cc ('k') | src/cpu-profiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cpu-profiler.h
diff --git a/src/cpu-profiler.h b/src/cpu-profiler.h
index f5f2014bd5ecf2a86d8a15e47652b71d753045d7..d666255b0af56539daa4e3c374cd255308a4ebe4 100644
--- a/src/cpu-profiler.h
+++ b/src/cpu-profiler.h
@@ -7,8 +7,8 @@
#include "src/allocation.h"
#include "src/base/atomicops.h"
+#include "src/base/platform/time.h"
#include "src/circular-queue.h"
-#include "src/platform/time.h"
#include "src/sampler.h"
#include "src/unbound-queue.h"
@@ -122,11 +122,11 @@ class CodeEventsContainer {
// This class implements both the profile events processor thread and
// methods called by event producers: VM and stack sampler threads.
-class ProfilerEventsProcessor : public Thread {
+class ProfilerEventsProcessor : public base::Thread {
public:
ProfilerEventsProcessor(ProfileGenerator* generator,
Sampler* sampler,
- TimeDelta period);
+ base::TimeDelta period);
virtual ~ProfilerEventsProcessor() {}
// Thread control.
@@ -165,7 +165,7 @@ class ProfilerEventsProcessor : public Thread {
Sampler* sampler_;
bool running_;
// Sampling period in microseconds.
- const TimeDelta period_;
+ const base::TimeDelta period_;
UnboundQueue<CodeEventsContainer> events_buffer_;
static const size_t kTickSampleBufferSize = 1 * MB;
static const size_t kTickSampleQueueLength =
@@ -200,7 +200,7 @@ class CpuProfiler : public CodeEventListener {
virtual ~CpuProfiler();
- void set_sampling_interval(TimeDelta value);
+ void set_sampling_interval(base::TimeDelta value);
void StartProfiling(const char* title, bool record_samples = false);
void StartProfiling(String* title, bool record_samples);
CpuProfile* StopProfiling(const char* title);
@@ -259,7 +259,7 @@ class CpuProfiler : public CodeEventListener {
void LogBuiltins();
Isolate* isolate_;
- TimeDelta sampling_interval_;
+ base::TimeDelta sampling_interval_;
CpuProfilesCollection* profiles_;
ProfileGenerator* generator_;
ProfilerEventsProcessor* processor_;
« src/base/macros.h ('K') | « src/cpu.cc ('k') | src/cpu-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698