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>
This commit is contained in:
Ben Noordhuis 2017-09-18 16:38:59 +02:00 committed by Ruben Bridgewater
parent 3869dd2a13
commit 78339e2511
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762

View File

@ -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 {