Browse Source

src: constify PerformanceEntry data members

PR-URL: https://github.com/nodejs/node/pull/15458
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
canary-base
Ben Noordhuis 7 years ago
committed by Ruben Bridgewater
parent
commit
78339e2511
No known key found for this signature in database GPG Key ID: F07496B3EB3C1762
  1. 20
      src/node_perf.h

20
src/node_perf.h

@ -94,12 +94,12 @@ class PerformanceEntry : public BaseObject {
} }
private: private:
Environment* env_; Environment* const env_;
std::string name_; const std::string name_;
std::string type_; const std::string type_;
uint64_t startTime_; const uint64_t startTime_;
uint64_t endTime_; const uint64_t endTime_;
int data_; const int data_;
}; };
static void NotifyObservers(Environment* env, PerformanceEntry* entry); static void NotifyObservers(Environment* env, PerformanceEntry* entry);
@ -160,10 +160,10 @@ class PerformanceEntry : public BaseObject {
} }
private: private:
std::string name_; const std::string name_;
std::string type_; const std::string type_;
uint64_t startTime_; const uint64_t startTime_;
uint64_t endTime_; const uint64_t endTime_;
}; };
enum PerformanceGCKind { enum PerformanceGCKind {

Loading…
Cancel
Save