File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -680,9 +680,9 @@ static void PrintResourceUsage(JSONWriter* writer) {
680
680
writer->json_objectend ();
681
681
}
682
682
writer->json_objectend ();
683
- # ifdef RUSAGE_THREAD
684
- struct rusage stats;
685
- if (getrusage (RUSAGE_THREAD, &stats) == 0 ) {
683
+
684
+ uv_rusage_t stats;
685
+ if (uv_getrusage_thread ( &stats) == 0 ) {
686
686
writer->json_objectstart (" uvthreadResourceUsage" );
687
687
double user_cpu =
688
688
stats.ru_utime .tv_sec + SEC_PER_MICROS * stats.ru_utime .tv_usec ;
@@ -703,7 +703,6 @@ static void PrintResourceUsage(JSONWriter* writer) {
703
703
writer->json_objectend ();
704
704
writer->json_objectend ();
705
705
}
706
- #endif // RUSAGE_THREAD
707
706
}
708
707
709
708
static void PrintEnvironmentVariables (JSONWriter* writer) {
You can’t perform that action at this time.
0 commit comments