tick-sample.h 730 Bytes
Newer Older
lpy's avatar
lpy committed
1 2 3 4 5 6 7
// Copyright 2013 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef V8_PROFILER_TICK_SAMPLE_H_
#define V8_PROFILER_TICK_SAMPLE_H_

8
#include "include/v8-profiler.h"
lpy's avatar
lpy committed
9 10 11 12 13 14 15 16
#include "src/base/platform/time.h"
#include "src/globals.h"

namespace v8 {
namespace internal {

class Isolate;

17
struct TickSample : public v8::TickSample {
lpy's avatar
lpy committed
18
  void Init(Isolate* isolate, const v8::RegisterState& state,
19 20
            RecordCEntryFrame record_c_entry_frame, bool update_stats,
            bool use_simulator_reg_state = true);
lpy's avatar
lpy committed
21 22 23 24 25 26 27
  base::TimeTicks timestamp;
};

}  // namespace internal
}  // namespace v8

#endif  // V8_PROFILER_TICK_SAMPLE_H_