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 3 // found in the LICENSE file. 4 5 #ifndef V8_PROFILER_TICK_SAMPLE_H_ 6 #define V8_PROFILER_TICK_SAMPLE_H_ 7 8 #include "include/v8-profiler.h" 9 #include "src/base/platform/time.h" 10 #include "src/globals.h" 11 12 namespace v8 { 13 namespace internal { 14 15 class Isolate; 16 17 struct TickSample : public v8::TickSample { 18 void Init(Isolate* isolate, const v8::RegisterState& state, 19 RecordCEntryFrame record_c_entry_frame, bool update_stats, 20 bool use_simulator_reg_state = true); 21 base::TimeTicks timestamp; 22 }; 23 24 } // namespace internal 25 } // namespace v8 26 27 #endif // V8_PROFILER_TICK_SAMPLE_H_ 28