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

Commit

Permalink
windows: add support for '_Total' perf counters
Browse files Browse the repository at this point in the history
  • Loading branch information
sblom authored and piscisaureus committed Jan 11, 2013
1 parent 8018113 commit 8e311d2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
32 changes: 21 additions & 11 deletions src/res/node_perfctr_provider.man
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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

0 comments on commit 8e311d2

Please sign in to comment.