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

Side by Side Diff: src/profiler/tick-sample.h

Issue 2138643003: Revert three commits due to cpu-profiler failures (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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 | « src/profiler/profile-generator.h ('k') | src/profiler/tick-sample.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project 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 V8_PROFILER_TICK_SAMPLE_H_ 5 #ifndef V8_PROFILER_TICK_SAMPLE_H_
6 #define V8_PROFILER_TICK_SAMPLE_H_ 6 #define V8_PROFILER_TICK_SAMPLE_H_
7 7
8 #include "include/v8-profiler.h" 8 #include "include/v8-profiler.h"
9 #include "src/base/platform/time.h" 9 #include "src/base/platform/time.h"
10 #include "src/globals.h" 10 #include "src/globals.h"
11 11
12 namespace v8 { 12 namespace v8 {
13 namespace internal { 13 namespace internal {
14 14
15 class Isolate; 15 class Isolate;
16 16
17 struct TickSample : public v8::TickSample { 17 struct TickSample : public v8::TickSample {
18 TickSample() : v8::TickSample() {}
18 void Init(Isolate* isolate, const v8::RegisterState& state, 19 void Init(Isolate* isolate, const v8::RegisterState& state,
19 RecordCEntryFrame record_c_entry_frame, bool update_stats); 20 RecordCEntryFrame record_c_entry_frame, bool update_stats);
20 base::TimeTicks timestamp; 21 base::TimeTicks timestamp;
21 }; 22 };
22 23
24 #if defined(USE_SIMULATOR)
25 class SimulatorHelper {
26 public:
27 // Returns true if register values were successfully retrieved
28 // from the simulator, otherwise returns false.
29 static bool FillRegisters(Isolate* isolate, v8::RegisterState* state);
30 };
31 #endif // USE_SIMULATOR
32
23 } // namespace internal 33 } // namespace internal
24 } // namespace v8 34 } // namespace v8
25 35
26 #endif // V8_PROFILER_TICK_SAMPLE_H_ 36 #endif // V8_PROFILER_TICK_SAMPLE_H_
OLDNEW
« no previous file with comments | « src/profiler/profile-generator.h ('k') | src/profiler/tick-sample.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698