File tree 5 files changed +10
-10
lines changed
5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -928,7 +928,7 @@ inline const Mutex& Environment::extra_linked_bindings_mutex() const {
928
928
return extra_linked_bindings_mutex_;
929
929
}
930
930
931
- inline performance::performance_state * Environment::performance_state () {
931
+ inline performance::PerformanceState * Environment::performance_state () {
932
932
return performance_state_.get ();
933
933
}
934
934
Original file line number Diff line number Diff line change @@ -348,7 +348,7 @@ Environment::Environment(IsolateData* isolate_data,
348
348
this );
349
349
350
350
performance_state_ =
351
- std::make_unique<performance::performance_state >(isolate ());
351
+ std::make_unique<performance::PerformanceState >(isolate ());
352
352
performance_state_->Mark (
353
353
performance::NODE_PERFORMANCE_MILESTONE_ENVIRONMENT);
354
354
performance_state_->Mark (performance::NODE_PERFORMANCE_MILESTONE_NODE_START,
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ class FileHandleReadWrap;
64
64
}
65
65
66
66
namespace performance {
67
- class performance_state ;
67
+ class PerformanceState ;
68
68
}
69
69
70
70
namespace tracing {
@@ -1016,7 +1016,7 @@ class Environment : public MemoryRetainer {
1016
1016
inline std::vector<std::unique_ptr<fs::FileHandleReadWrap>>&
1017
1017
file_handle_read_wrap_freelist ();
1018
1018
1019
- inline performance::performance_state * performance_state ();
1019
+ inline performance::PerformanceState * performance_state ();
1020
1020
inline std::unordered_map<std::string, uint64_t >* performance_marks ();
1021
1021
1022
1022
void CollectUVExceptionInfo (v8::Local<v8::Value> context,
@@ -1327,7 +1327,7 @@ class Environment : public MemoryRetainer {
1327
1327
1328
1328
AliasedInt32Array stream_base_state_;
1329
1329
1330
- std::unique_ptr<performance::performance_state > performance_state_;
1330
+ std::unique_ptr<performance::PerformanceState > performance_state_;
1331
1331
std::unordered_map<std::string, uint64_t > performance_marks_;
1332
1332
1333
1333
bool has_run_bootstrapping_code_ = false ;
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ const uint64_t timeOrigin = PERFORMANCE_NOW();
44
44
const double timeOriginTimestamp = GetCurrentTimeInMicroseconds();
45
45
uint64_t performance_v8_start;
46
46
47
- void performance_state ::Mark (enum PerformanceMilestone milestone,
47
+ void PerformanceState ::Mark (enum PerformanceMilestone milestone,
48
48
uint64_t ts) {
49
49
this ->milestones [milestone] = ts;
50
50
TRACE_EVENT_INSTANT_WITH_TIMESTAMP0 (
@@ -263,7 +263,7 @@ void MarkGarbageCollectionEnd(Isolate* isolate,
263
263
GCCallbackFlags flags,
264
264
void * data) {
265
265
Environment* env = static_cast <Environment*>(data);
266
- performance_state * state = env->performance_state ();
266
+ PerformanceState * state = env->performance_state ();
267
267
// If no one is listening to gc performance entries, do not create them.
268
268
if (!state->observers [NODE_PERFORMANCE_ENTRY_TYPE_GC])
269
269
return ;
@@ -548,7 +548,7 @@ void Initialize(Local<Object> target,
548
548
void * priv) {
549
549
Environment* env = Environment::GetCurrent (context);
550
550
Isolate* isolate = env->isolate ();
551
- performance_state * state = env->performance_state ();
551
+ PerformanceState * state = env->performance_state ();
552
552
553
553
target->Set (context,
554
554
FIXED_ONE_BYTE_STRING (isolate, " observerCounts" ),
Original file line number Diff line number Diff line change @@ -52,9 +52,9 @@ enum PerformanceEntryType {
52
52
NODE_PERFORMANCE_ENTRY_TYPE_INVALID
53
53
};
54
54
55
- class performance_state {
55
+ class PerformanceState {
56
56
public:
57
- explicit performance_state (v8::Isolate* isolate) :
57
+ explicit PerformanceState (v8::Isolate* isolate) :
58
58
root(
59
59
isolate,
60
60
sizeof (performance_state_internal)),
You can’t perform that action at this time.
0 commit comments