Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Add support for 'Total' perf counters #4560

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
32 changes: 21 additions & 11 deletions src/res/node_perfctr_provider.man
Expand Up @@ -14,81 +14,91 @@
uri="Microsoft.Windows.System.PerfCounters.NodeCounterSet"
name="Node.js"
description="Node.js performance counters"
instances="multiple">
instances="multipleAggregate">

<counter id="1"
uri="Microsoft.Windows.System.PerfCounters.NodeCounterSet.httpsrvreq"
name="HTTP server requests"
description="Number of HTTP server requests"
type="perf_counter_counter"
detailLevel="standard" />
detailLevel="standard"
aggregate="sum" />

<counter id="2"
uri="Microsoft.Windows.System.PerfCounters.NodeCounterSet.httpsrvrsp"
name="HTTP server responses"
description="Number of HTTP server responses"
type="perf_counter_counter"
detailLevel="standard" />
detailLevel="standard"
aggregate="sum" />

<counter id="3"
uri="Microsoft.Windows.System.PerfCounters.NodeCounterSet.httpclireq"
name="HTTP client requests"
description="Number of HTTP client requests"
type="perf_counter_counter"
detailLevel="standard" />
detailLevel="standard"
aggregate="sum" />

<counter id="4"
uri="Microsoft.Windows.System.PerfCounters.NodeCounterSet.httpclirsp"
name="HTTP client responses"
description="Number of HTTP client responses"
type="perf_counter_counter"
detailLevel="standard" />
detailLevel="standard"
aggregate="sum" />

<counter id="5"
uri="Microsoft.Windows.System.PerfCounters.NodeCounterSet.netsrvconn"
name="Active server connections"
description="Number of server connections"
type="perf_counter_rawcount"
detailLevel="standard" />
detailLevel="standard"
aggregate="sum" />

<counter id="6"
uri="Microsoft.Windows.System.PerfCounters.NodeCounterSet.netbytesent"
name="Network bytes sent"
description="Number of bytes sent using TCP"
type="perf_counter_bulk_count"
detailLevel="standard"
defaultScale="-3" />
defaultScale="-3"
aggregate="sum" />

<counter id="7"
uri="Microsoft.Windows.System.PerfCounters.NodeCounterSet.netbyterecv"
name="Network bytes received"
description="Number of bytes received using TCP"
type="perf_counter_bulk_count"
detailLevel="standard"
defaultScale="-3" />
defaultScale="-3"
aggregate="sum" />

<counter id="8"
uri="Microsoft.Windows.System.PerfCounters.NodeCounterSet.gctime"
name="%Time in GC"
description="Percent of time for last GC"
type="perf_counter_rawcount"
detailLevel="standard" />
detailLevel="standard"
aggregate="avg" />

<counter id="9"
uri="Microsoft.Windows.System.PerfCounters.NodeCounterSet.pipebytesent"
name="Pipe bytes sent"
description="Number of bytes sent using pipe"
type="perf_counter_bulk_count"
detailLevel="standard"
defaultScale="-3" />
defaultScale="-3"
aggregate="sum" />

<counter id="10"
uri="Microsoft.Windows.System.PerfCounters.NodeCounterSet.pipebyterecv"
name="Pipe bytes received"
description="Number of bytes received using pipe"
type="perf_counter_bulk_count"
detailLevel="standard"
defaultScale="-3" />
defaultScale="-3"
aggregate="sum" />

</counterSet>
</provider>
Expand Down
2 changes: 1 addition & 1 deletion tools/msvs/genfiles/node_perfctr_provider.h
Expand Up @@ -23,7 +23,7 @@ EXTERN_C DECLSPEC_SELECTANY struct {
PERF_COUNTER_INFO Counter8;
PERF_COUNTER_INFO Counter9;
} NodeCounterSetInfo = {
{ { 0x3a22a8ec, 0x297c, 0x48ac, 0xab, 0x15, 0x33, 0xec, 0x93, 0x3, 0x3f, 0xd8 }, { 0x1e2e15d7, 0x3760, 0x470e, 0x86, 0x99, 0xb9, 0xdb, 0x52, 0x48, 0xed, 0xd5 }, 10, PERF_COUNTERSET_MULTI_INSTANCES },
{ { 0x3a22a8ec, 0x297c, 0x48ac, 0xab, 0x15, 0x33, 0xec, 0x93, 0x3, 0x3f, 0xd8 }, { 0x1e2e15d7, 0x3760, 0x470e, 0x86, 0x99, 0xb9, 0xdb, 0x52, 0x48, 0xed, 0xd5 }, 10, PERF_COUNTERSET_MULTI_AGGREGATE },
{ 1, PERF_COUNTER_COUNTER, 0, sizeof(ULONG), PERF_DETAIL_NOVICE, 0, 0 },
{ 2, PERF_COUNTER_COUNTER, 0, sizeof(ULONG), PERF_DETAIL_NOVICE, 0, 0 },
{ 3, PERF_COUNTER_COUNTER, 0, sizeof(ULONG), PERF_DETAIL_NOVICE, 0, 0 },
Expand Down