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 @@ -944,7 +944,7 @@ inline const Mutex& Environment::extra_linked_bindings_mutex() const {
944
944
return extra_linked_bindings_mutex_;
945
945
}
946
946
947
- inline performance::performance_state * Environment::performance_state () {
947
+ inline performance::PerformanceState * Environment::performance_state () {
948
948
return performance_state_.get ();
949
949
}
950
950
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,
@@ -1323,7 +1323,7 @@ class Environment : public MemoryRetainer {
1323
1323
1324
1324
AliasedInt32Array stream_base_state_;
1325
1325
1326
- std::unique_ptr<performance::performance_state > performance_state_;
1326
+ std::unique_ptr<performance::PerformanceState > performance_state_;
1327
1327
std::unordered_map<std::string, uint64_t > performance_marks_;
1328
1328
1329
1329
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 (
@@ -267,7 +267,7 @@ void MarkGarbageCollectionEnd(Isolate* isolate,
267
267
GCCallbackFlags flags,
268
268
void * data) {
269
269
Environment* env = static_cast <Environment*>(data);
270
- performance_state * state = env->performance_state ();
270
+ PerformanceState * state = env->performance_state ();
271
271
// If no one is listening to gc performance entries, do not create them.
272
272
if (!state->observers [NODE_PERFORMANCE_ENTRY_TYPE_GC])
273
273
return ;
@@ -553,7 +553,7 @@ void Initialize(Local<Object> target,
553
553
void * priv) {
554
554
Environment* env = Environment::GetCurrent (context);
555
555
Isolate* isolate = env->isolate ();
556
- performance_state * state = env->performance_state ();
556
+ PerformanceState * state = env->performance_state ();
557
557
558
558
target->Set (context,
559
559
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