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) {
680680 writer->json_objectend ();
681681 }
682682 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 ) {
686686 writer->json_objectstart (" uvthreadResourceUsage" );
687687 double user_cpu =
688688 stats.ru_utime .tv_sec + SEC_PER_MICROS * stats.ru_utime .tv_usec ;
@@ -703,7 +703,6 @@ static void PrintResourceUsage(JSONWriter* writer) {
703703 writer->json_objectend ();
704704 writer->json_objectend ();
705705 }
706- #endif // RUSAGE_THREAD
707706}
708707
709708static void PrintEnvironmentVariables (JSONWriter* writer) {
You can’t perform that action at this time.
0 commit comments