From 8e311d28b0927a3c02a1fa027945254e1a33712b Mon Sep 17 00:00:00 2001 From: Scott Blomquist Date: Fri, 11 Jan 2013 22:24:15 +0100 Subject: [PATCH] windows: add support for '_Total' perf counters --- src/res/node_perfctr_provider.man | 32 ++++++++++++++------- tools/msvs/genfiles/node_perfctr_provider.h | 2 +- 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/src/res/node_perfctr_provider.man b/src/res/node_perfctr_provider.man index cd945ee5fba9..fb8e597781e9 100644 --- a/src/res/node_perfctr_provider.man +++ b/src/res/node_perfctr_provider.man @@ -14,42 +14,47 @@ uri="Microsoft.Windows.System.PerfCounters.NodeCounterSet" name="Node.js" description="Node.js performance counters" - instances="multiple"> + instances="multipleAggregate"> + detailLevel="standard" + aggregate="sum" /> + detailLevel="standard" + aggregate="sum" /> + detailLevel="standard" + aggregate="sum" /> + detailLevel="standard" + aggregate="sum" /> + detailLevel="standard" + aggregate="sum" /> + defaultScale="-3" + aggregate="sum" /> + defaultScale="-3" + aggregate="sum" /> + detailLevel="standard" + aggregate="avg" /> + defaultScale="-3" + aggregate="sum" /> + defaultScale="-3" + aggregate="sum" /> diff --git a/tools/msvs/genfiles/node_perfctr_provider.h b/tools/msvs/genfiles/node_perfctr_provider.h index a54ce905146b..30f0b58621ad 100644 --- a/tools/msvs/genfiles/node_perfctr_provider.h +++ b/tools/msvs/genfiles/node_perfctr_provider.h @@ -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 },