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 @@ -676,9 +676,9 @@ static void PrintResourceUsage(JSONWriter* writer) {
676
676
writer->json_objectend ();
677
677
}
678
678
writer->json_objectend ();
679
- # ifdef RUSAGE_THREAD
680
- struct rusage stats;
681
- if (getrusage (RUSAGE_THREAD, &stats) == 0 ) {
679
+
680
+ uv_rusage_t stats;
681
+ if (uv_getrusage_thread ( &stats) == 0 ) {
682
682
writer->json_objectstart (" uvthreadResourceUsage" );
683
683
double user_cpu =
684
684
stats.ru_utime .tv_sec + SEC_PER_MICROS * stats.ru_utime .tv_usec ;
@@ -699,7 +699,6 @@ static void PrintResourceUsage(JSONWriter* writer) {
699
699
writer->json_objectend ();
700
700
writer->json_objectend ();
701
701
}
702
- #endif // RUSAGE_THREAD
703
702
}
704
703
705
704
static void PrintEnvironmentVariables (JSONWriter* writer) {
You can’t perform that action at this time.
0 commit comments