mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
src: clean up generic counter implementation
This addresses late review comments for the recently
landed cfbfc1b050 and aligns the new code with the
pre-existing V8 fast call counters.
Refs: https://github.com/nodejs/node/pull/60434#pullrequestreview-3386035944
PR-URL: https://github.com/nodejs/node/pull/60447
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
1 parent
88080944ce
commit
b470ba08e1
2 files changed
+9
-9
No files matched your search
+3
-2
@@ -13,8 +13,9 @@ namespace debug {
|
||||
void TrackV8FastApiCall(FastStringKey key);
|
||||
int GetV8FastApiCallCount(FastStringKey key);
|
||||
|
||||
void CountGenericUsage(const char* counter_name);
|
||||
#define COUNT_GENERIC_USAGE(name) node::debug::CountGenericUsage(name)
|
||||
void CountGenericUsage(FastStringKey counter_name);
|
||||
#define COUNT_GENERIC_USAGE(name) \
|
||||
node::debug::CountGenericUsage(FastStringKey(name))
|
||||
|
||||
#define TRACK_V8_FAST_API_CALL(key) \
|
||||
node::debug::TrackV8FastApiCall(FastStringKey(key))
|
||||
|
||||
Reference in new issue
Block a user