A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/nodejs/node/commit/cbb2a0172f below:

use uv_getrusage_thread in report · nodejs/node@cbb2a01 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+3

-4

lines changed

Filter options

Expand file treeCollapse 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.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4