diff options
author | Anna Henningsen <anna@addaleax.net> | 2020-03-29 02:34:07 +0300 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2020-04-11 11:03:12 +0300 |
commit | e066584d94e7fbe81cf4978c517446fca6b00bbc (patch) | |
tree | b922911884a9c7f1852730eb03c3c2380ff12aa5 /src/node_perf.cc | |
parent | 78b90d9bc48aed7166c14d2e043f796317b233d2 (diff) |
src: align PerformanceState class name with conventions
Class names are written in UpperCamelCase. Otherwise, this looks like
it’s a variable, not a class name.
PR-URL: https://github.com/nodejs/node/pull/32539
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_perf.cc')
-rw-r--r-- | src/node_perf.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/node_perf.cc b/src/node_perf.cc index 21766d3b89a..e54edb5fe6d 100644 --- a/src/node_perf.cc +++ b/src/node_perf.cc @@ -44,7 +44,7 @@ const uint64_t timeOrigin = PERFORMANCE_NOW(); const double timeOriginTimestamp = GetCurrentTimeInMicroseconds(); uint64_t performance_v8_start; -void performance_state::Mark(enum PerformanceMilestone milestone, +void PerformanceState::Mark(enum PerformanceMilestone milestone, uint64_t ts) { this->milestones[milestone] = ts; TRACE_EVENT_INSTANT_WITH_TIMESTAMP0( @@ -267,7 +267,7 @@ void MarkGarbageCollectionEnd(Isolate* isolate, GCCallbackFlags flags, void* data) { Environment* env = static_cast<Environment*>(data); - performance_state* state = env->performance_state(); + PerformanceState* state = env->performance_state(); // If no one is listening to gc performance entries, do not create them. if (!state->observers[NODE_PERFORMANCE_ENTRY_TYPE_GC]) return; @@ -553,7 +553,7 @@ void Initialize(Local<Object> target, void* priv) { Environment* env = Environment::GetCurrent(context); Isolate* isolate = env->isolate(); - performance_state* state = env->performance_state(); + PerformanceState* state = env->performance_state(); target->Set(context, FIXED_ONE_BYTE_STRING(isolate, "observerCounts"), |