summaryrefslogtreecommitdiff
path: root/deps/v8/src/profiler/tick-sample.h
blob: 819b862388a29fb9fbec5a4548720bdb2703efa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// 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_

#include "include/v8-profiler.h"
#include "src/base/platform/time.h"
#include "src/globals.h"

namespace v8 {
namespace internal {

class Isolate;

struct TickSample : public v8::TickSample {
  void Init(Isolate* isolate, const v8::RegisterState& state,
            RecordCEntryFrame record_c_entry_frame, bool update_stats,
            bool use_simulator_reg_state = true);
  base::TimeTicks timestamp;
};

}  // namespace internal
}  // namespace v8

#endif  // V8_PROFILER_TICK_SAMPLE_H_