summaryrefslogtreecommitdiff
path: root/js/src/builtin/Profilers.h
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/builtin/Profilers.h')
-rw-r--r--js/src/builtin/Profilers.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/js/src/builtin/Profilers.h b/js/src/builtin/Profilers.h
index 6ef552a356..da71fd1a86 100644
--- a/js/src/builtin/Profilers.h
+++ b/js/src/builtin/Profilers.h
@@ -29,21 +29,21 @@ typedef int pid_t;
*
* Returns true if no profilers fail to start.
*/
-extern MOZ_MUST_USE JS_PUBLIC_API(bool)
+[[nodiscard]] extern JS_PUBLIC_API(bool)
JS_StartProfiling(const char* profileName, pid_t pid);
/**
* Stop any profilers that were previously started with JS_StartProfiling.
* Returns true if no profilers fail to stop.
*/
-extern MOZ_MUST_USE JS_PUBLIC_API(bool)
+[[nodiscard]] extern JS_PUBLIC_API(bool)
JS_StopProfiling(const char* profileName);
/**
* Write the current profile data to the given file, if applicable to whatever
* profiler is being used.
*/
-extern MOZ_MUST_USE JS_PUBLIC_API(bool)
+[[nodiscard]] extern JS_PUBLIC_API(bool)
JS_DumpProfile(const char* outfile, const char* profileName);
/**
@@ -51,13 +51,13 @@ JS_DumpProfile(const char* outfile, const char* profileName);
* whether any profilers failed to pause. (Profilers that do not support
* pause/resume do not count.)
*/
-extern MOZ_MUST_USE JS_PUBLIC_API(bool)
+[[nodiscard]] extern JS_PUBLIC_API(bool)
JS_PauseProfilers(const char* profileName);
/**
* Resume suspended profilers
*/
-extern MOZ_MUST_USE JS_PUBLIC_API(bool)
+[[nodiscard]] extern JS_PUBLIC_API(bool)
JS_ResumeProfilers(const char* profileName);
/**
@@ -70,23 +70,23 @@ JS_UnsafeGetLastProfilingError();
#ifdef MOZ_CALLGRIND
-extern MOZ_MUST_USE JS_FRIEND_API(bool)
+[[nodiscard]] extern JS_FRIEND_API(bool)
js_StopCallgrind();
-extern MOZ_MUST_USE JS_FRIEND_API(bool)
+[[nodiscard]] extern JS_FRIEND_API(bool)
js_StartCallgrind();
-extern MOZ_MUST_USE JS_FRIEND_API(bool)
+[[nodiscard]] extern JS_FRIEND_API(bool)
js_DumpCallgrind(const char* outfile);
#endif /* MOZ_CALLGRIND */
#ifdef __linux__
-extern MOZ_MUST_USE JS_FRIEND_API(bool)
+[[nodiscard]] extern JS_FRIEND_API(bool)
js_StartPerf();
-extern MOZ_MUST_USE JS_FRIEND_API(bool)
+[[nodiscard]] extern JS_FRIEND_API(bool)
js_StopPerf();
#endif /* __linux__ */