We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0535623 + 8fdcc2f commit f51a246Copy full SHA for f51a246
Sources/_InstructionCounter/include/InstructionsExecuted.h
@@ -10,7 +10,7 @@
10
//
11
//===----------------------------------------------------------------------===//
12
13
-#include <unistd.h>
+#include <stdint.h>
14
15
/// On macOS returns the number of instructions the process has executed since
16
/// it was launched, on all other platforms returns 0.
Sources/_InstructionCounter/src/InstructionsExecuted.c
@@ -22,6 +22,7 @@
22
#ifdef TARGET_IS_MACOS
23
#include <libproc.h>
24
#include <sys/resource.h>
25
+#include <unistd.h>
26
27
uint64_t getInstructionsExecuted() {
28
struct rusage_info_v4 ru;
0 commit comments