v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
maglev-pipeline-statistics.h
Go to the documentation of this file.
1// Copyright 2023 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_MAGLEV_MAGLEV_PIPELINE_STATISTICS_H_
6#define V8_MAGLEV_MAGLEV_PIPELINE_STATISTICS_H_
7
8#ifdef V8_ENABLE_MAGLEV
9
15
16namespace v8 {
17namespace internal {
18namespace maglev {
19
20class MaglevPipelineStatistics : public compiler::PipelineStatisticsBase,
21 public Malloced {
22 public:
23 MaglevPipelineStatistics(maglev::MaglevCompilationInfo* info,
24 std::shared_ptr<CompilationStatistics> stats,
25 compiler::ZoneStats* zone_stats);
26 ~MaglevPipelineStatistics();
27 MaglevPipelineStatistics(const MaglevPipelineStatistics&) = delete;
28 MaglevPipelineStatistics& operator=(const MaglevPipelineStatistics&) = delete;
29
30 static constexpr char kTraceCategory[] =
31 TRACE_DISABLED_BY_DEFAULT("v8.maglev");
32
33 void BeginPhaseKind(const char* name);
34 void EndPhaseKind();
35 void BeginPhase(const char* name);
36 void EndPhase();
37};
38
39} // namespace maglev
40} // namespace internal
41} // namespace v8
42
43#endif // V8_ENABLE_MAGLEV
44
45#endif // V8_MAGLEV_MAGLEV_PIPELINE_STATISTICS_H_
#define TRACE_DISABLED_BY_DEFAULT(name)