v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
high-allocation-throughput-scope.h
Go to the documentation of this file.
1
// Copyright 2021 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_COMMON_HIGH_ALLOCATION_THROUGHPUT_SCOPE_H_
6
#define V8_COMMON_HIGH_ALLOCATION_THROUGHPUT_SCOPE_H_
7
8
#include "
include/v8-platform.h
"
9
10
namespace
v8
{
11
namespace
internal
{
12
17
class
HighAllocationThroughputScope
final {
18
public
:
19
explicit
HighAllocationThroughputScope
(
Platform
* platform)
20
:
observer_
(platform->GetHighAllocationThroughputObserver()) {
21
observer_
->
LeaveSection
();
22
}
23
24
HighAllocationThroughputScope
(
const
HighAllocationThroughputScope
&) =
delete
;
25
HighAllocationThroughputScope
&
operator=
(
26
const
HighAllocationThroughputScope
&) =
delete
;
27
28
~HighAllocationThroughputScope
() {
observer_
->
EnterSection
(); }
29
30
private
:
31
HighAllocationThroughputObserver
*
observer_
;
32
};
33
34
}
// namespace internal
35
}
// namespace v8
36
37
#endif
// V8_COMMON_HIGH_ALLOCATION_THROUGHPUT_SCOPE_H_
v8::HighAllocationThroughputObserver
Definition
v8-platform.h:1046
v8::HighAllocationThroughputObserver::EnterSection
virtual void EnterSection()
Definition
v8-platform.h:1048
v8::HighAllocationThroughputObserver::LeaveSection
virtual void LeaveSection()
Definition
v8-platform.h:1049
v8::Platform
Definition
v8-platform.h:1058
v8::internal::HighAllocationThroughputScope
Definition
high-allocation-throughput-scope.h:17
v8::internal::HighAllocationThroughputScope::~HighAllocationThroughputScope
~HighAllocationThroughputScope()
Definition
high-allocation-throughput-scope.h:28
v8::internal::HighAllocationThroughputScope::HighAllocationThroughputScope
HighAllocationThroughputScope(Platform *platform)
Definition
high-allocation-throughput-scope.h:19
v8::internal::HighAllocationThroughputScope::operator=
HighAllocationThroughputScope & operator=(const HighAllocationThroughputScope &)=delete
v8::internal::HighAllocationThroughputScope::observer_
HighAllocationThroughputObserver * observer_
Definition
high-allocation-throughput-scope.h:31
v8::internal::HighAllocationThroughputScope::HighAllocationThroughputScope
HighAllocationThroughputScope(const HighAllocationThroughputScope &)=delete
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8
Definition
api-arguments-inl.h:19
v8-platform.h
src
common
high-allocation-throughput-scope.h
Generated on Sun Apr 6 2025 21:08:51 for v8 by
1.12.0