Node.js
v8.x
Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine
|
#include "node_counters.h"
#include "node_win32_perfctr_provider.h"
#include <perflib.h>
#include "node_perfctr_provider.h"
Go to the source code of this file.
Namespaces | |
node | |
Macros | |
#define | __INIT_node_perfctr_provider_IMP |
#define | NODE_COUNTER_HTTP_SERVER_REQUEST 1 |
#define | NODE_COUNTER_HTTP_SERVER_RESPONSE 2 |
#define | NODE_COUNTER_HTTP_CLIENT_REQUEST 3 |
#define | NODE_COUNTER_HTTP_CLIENT_RESPONSE 4 |
#define | NODE_COUNTER_SERVER_CONNS 5 |
#define | NODE_COUNTER_NET_BYTES_SENT 6 |
#define | NODE_COUNTER_NET_BYTES_RECV 7 |
#define | NODE_COUNTER_GC_PERCENTTIME 8 |
#define | NODE_COUNTER_PIPE_BYTES_SENT 9 |
#define | NODE_COUNTER_PIPE_BYTES_RECV 10 |
#define | INST_MAX_LEN 32 |
#define | INST_PREFIX_LEN 5 |
#define | INST_PREFIX L"node_" |
Typedefs | |
typedef ULONG(WINAPI * | PerfStartProviderExFunc) (__in LPGUID ProviderGuid, __in_opt PPERF_PROVIDER_CONTEXT ProviderContext, __out PHANDLE Provider) |
typedef ULONG(WINAPI * | PerfStopProviderFunc) (__in HANDLE ProviderHandle) |
typedef ULONG(WINAPI * | PerfSetCounterSetInfoFunc) (__in HANDLE ProviderHandle, __inout_bcount(TemplateSize) PPERF_COUNTERSET_INFO Template, __in ULONG TemplateSize) |
typedef PPERF_COUNTERSET_INSTANCE(WINAPI * | PerfCreateInstanceFunc) (__in HANDLE ProviderHandle, __in LPCGUID CounterSetGuid, __in PCWSTR Name, __in ULONG Id) |
typedef ULONG(WINAPI * | PerfDeleteInstanceFunc) (__in HANDLE Provider, __in PPERF_COUNTERSET_INSTANCE InstanceBlock) |
typedef ULONG(WINAPI * | PerfSetULongCounterValueFunc) (__in HANDLE Provider, __inout PPERF_COUNTERSET_INSTANCE Instance, __in ULONG CounterId, __in ULONG Value) |
typedef ULONG(WINAPI * | PerfSetULongLongCounterValueFunc) (__in HANDLE Provider, __inout PPERF_COUNTERSET_INSTANCE Instance, __in ULONG CounterId, __in ULONGLONG Value) |
typedef ULONG(WINAPI * | PerfIncrementULongCounterValueFunc) (__in HANDLE Provider, __inout PPERF_COUNTERSET_INSTANCE Instance, __in ULONG CounterId, __in ULONG Value) |
typedef ULONG(WINAPI * | PerfIncrementULongLongCounterValueFunc) (__in HANDLE Provider, __inout PPERF_COUNTERSET_INSTANCE Instance, __in ULONG CounterId, __in ULONGLONG Value) |
typedef ULONG(WINAPI * | PerfDecrementULongCounterValueFunc) (__in HANDLE Provider, __inout PPERF_COUNTERSET_INSTANCE Instance, __in ULONG CounterId, __in ULONG Value) |
typedef ULONG(WINAPI * | PerfDecrementULongLongCounterValueFunc) (__in HANDLE Provider, __inout PPERF_COUNTERSET_INSTANCE Instance, __in ULONG CounterId, __in ULONGLONG Value) |
Functions | |
void | InitPerfCountersWin32 () |
void | TermPerfCountersWin32 () |
void | NODE_COUNT_HTTP_SERVER_REQUEST () |
void | NODE_COUNT_HTTP_SERVER_RESPONSE () |
void | NODE_COUNT_HTTP_CLIENT_REQUEST () |
void | NODE_COUNT_HTTP_CLIENT_RESPONSE () |
void | NODE_COUNT_SERVER_CONN_OPEN () |
void | NODE_COUNT_SERVER_CONN_CLOSE () |
void | NODE_COUNT_NET_BYTES_SENT (int bytes) |
void | NODE_COUNT_NET_BYTES_RECV (int bytes) |
uint64_t | NODE_COUNT_GET_GC_RAWTIME () |
void | NODE_COUNT_GC_PERCENTTIME (unsigned int percent) |
void | NODE_COUNT_PIPE_BYTES_SENT (int bytes) |
void | NODE_COUNT_PIPE_BYTES_RECV (int bytes) |
#define __INIT_node_perfctr_provider_IMP |
Definition at line 22 of file node_win32_perfctr_provider.cc.
#define INST_MAX_LEN 32 |
Referenced by node::InitPerfCountersWin32().
#define INST_PREFIX L"node_" |
Referenced by node::InitPerfCountersWin32().
#define INST_PREFIX_LEN 5 |
Referenced by node::InitPerfCountersWin32().
#define NODE_COUNTER_GC_PERCENTTIME 8 |
Definition at line 114 of file node_win32_perfctr_provider.cc.
Referenced by node::NODE_COUNT_GC_PERCENTTIME().
#define NODE_COUNTER_HTTP_CLIENT_REQUEST 3 |
Definition at line 109 of file node_win32_perfctr_provider.cc.
Referenced by node::NODE_COUNT_HTTP_CLIENT_REQUEST().
#define NODE_COUNTER_HTTP_CLIENT_RESPONSE 4 |
Definition at line 110 of file node_win32_perfctr_provider.cc.
Referenced by node::NODE_COUNT_HTTP_CLIENT_RESPONSE().
#define NODE_COUNTER_HTTP_SERVER_REQUEST 1 |
Definition at line 107 of file node_win32_perfctr_provider.cc.
Referenced by node::NODE_COUNT_HTTP_SERVER_REQUEST().
#define NODE_COUNTER_HTTP_SERVER_RESPONSE 2 |
Definition at line 108 of file node_win32_perfctr_provider.cc.
Referenced by node::NODE_COUNT_HTTP_SERVER_RESPONSE().
#define NODE_COUNTER_NET_BYTES_RECV 7 |
Definition at line 113 of file node_win32_perfctr_provider.cc.
Referenced by node::NODE_COUNT_NET_BYTES_RECV().
#define NODE_COUNTER_NET_BYTES_SENT 6 |
Definition at line 112 of file node_win32_perfctr_provider.cc.
Referenced by node::NODE_COUNT_NET_BYTES_SENT().
#define NODE_COUNTER_PIPE_BYTES_RECV 10 |
Definition at line 116 of file node_win32_perfctr_provider.cc.
Referenced by node::NODE_COUNT_PIPE_BYTES_RECV().
#define NODE_COUNTER_PIPE_BYTES_SENT 9 |
Definition at line 115 of file node_win32_perfctr_provider.cc.
Referenced by node::NODE_COUNT_PIPE_BYTES_SENT().
#define NODE_COUNTER_SERVER_CONNS 5 |
Definition at line 111 of file node_win32_perfctr_provider.cc.
Referenced by node::NODE_COUNT_SERVER_CONN_CLOSE(), and node::NODE_COUNT_SERVER_CONN_OPEN().
typedef PPERF_COUNTERSET_INSTANCE(WINAPI * PerfCreateInstanceFunc) (__in HANDLE ProviderHandle, __in LPCGUID CounterSetGuid, __in PCWSTR Name, __in ULONG Id) |
Definition at line 44 of file node_win32_perfctr_provider.cc.
typedef ULONG(WINAPI * PerfDecrementULongCounterValueFunc) (__in HANDLE Provider, __inout PPERF_COUNTERSET_INSTANCE Instance, __in ULONG CounterId, __in ULONG Value) |
Definition at line 78 of file node_win32_perfctr_provider.cc.
typedef ULONG(WINAPI * PerfDecrementULongLongCounterValueFunc) (__in HANDLE Provider, __inout PPERF_COUNTERSET_INSTANCE Instance, __in ULONG CounterId, __in ULONGLONG Value) |
Definition at line 84 of file node_win32_perfctr_provider.cc.
typedef ULONG(WINAPI * PerfDeleteInstanceFunc) (__in HANDLE Provider, __in PPERF_COUNTERSET_INSTANCE InstanceBlock) |
Definition at line 50 of file node_win32_perfctr_provider.cc.
typedef ULONG(WINAPI * PerfIncrementULongCounterValueFunc) (__in HANDLE Provider, __inout PPERF_COUNTERSET_INSTANCE Instance, __in ULONG CounterId, __in ULONG Value) |
Definition at line 66 of file node_win32_perfctr_provider.cc.
typedef ULONG(WINAPI * PerfIncrementULongLongCounterValueFunc) (__in HANDLE Provider, __inout PPERF_COUNTERSET_INSTANCE Instance, __in ULONG CounterId, __in ULONGLONG Value) |
Definition at line 72 of file node_win32_perfctr_provider.cc.
typedef ULONG(WINAPI * PerfSetCounterSetInfoFunc) (__in HANDLE ProviderHandle, __inout_bcount(TemplateSize) PPERF_COUNTERSET_INFO Template, __in ULONG TemplateSize) |
Definition at line 39 of file node_win32_perfctr_provider.cc.
typedef ULONG(WINAPI * PerfSetULongCounterValueFunc) (__in HANDLE Provider, __inout PPERF_COUNTERSET_INSTANCE Instance, __in ULONG CounterId, __in ULONG Value) |
Definition at line 54 of file node_win32_perfctr_provider.cc.
typedef ULONG(WINAPI * PerfSetULongLongCounterValueFunc) (__in HANDLE Provider, __inout PPERF_COUNTERSET_INSTANCE Instance, __in ULONG CounterId, __in ULONGLONG Value) |
Definition at line 60 of file node_win32_perfctr_provider.cc.
typedef ULONG(WINAPI * PerfStartProviderExFunc) (__in LPGUID ProviderGuid, __in_opt PPERF_PROVIDER_CONTEXT ProviderContext, __out PHANDLE Provider) |
Definition at line 31 of file node_win32_perfctr_provider.cc.
typedef ULONG(WINAPI * PerfStopProviderFunc) (__in HANDLE ProviderHandle) |
Definition at line 36 of file node_win32_perfctr_provider.cc.
HMODULE advapimod |
Definition at line 91 of file node_win32_perfctr_provider.cc.
Referenced by node::InitPerfCountersWin32(), and node::TermPerfCountersWin32().
PerfCreateInstanceFunc perfctr_createInstance |
Definition at line 95 of file node_win32_perfctr_provider.cc.
Referenced by node::InitPerfCountersWin32().
PerfDecrementULongLongCounterValueFunc perfctr_decrementULongLongValue |
Definition at line 102 of file node_win32_perfctr_provider.cc.
Referenced by node::InitPerfCountersWin32().
PerfDecrementULongCounterValueFunc perfctr_decrementULongValue |
Definition at line 101 of file node_win32_perfctr_provider.cc.
Referenced by node::InitPerfCountersWin32(), and node::NODE_COUNT_SERVER_CONN_CLOSE().
PerfDeleteInstanceFunc perfctr_deleteInstance |
Definition at line 96 of file node_win32_perfctr_provider.cc.
Referenced by node::InitPerfCountersWin32().
PerfIncrementULongLongCounterValueFunc perfctr_incrementULongLongValue |
Definition at line 100 of file node_win32_perfctr_provider.cc.
Referenced by node::InitPerfCountersWin32(), node::NODE_COUNT_NET_BYTES_RECV(), node::NODE_COUNT_NET_BYTES_SENT(), node::NODE_COUNT_PIPE_BYTES_RECV(), and node::NODE_COUNT_PIPE_BYTES_SENT().
PerfIncrementULongCounterValueFunc perfctr_incrementULongValue |
Definition at line 99 of file node_win32_perfctr_provider.cc.
Referenced by node::InitPerfCountersWin32(), node::NODE_COUNT_HTTP_CLIENT_REQUEST(), node::NODE_COUNT_HTTP_CLIENT_RESPONSE(), node::NODE_COUNT_HTTP_SERVER_REQUEST(), node::NODE_COUNT_HTTP_SERVER_RESPONSE(), and node::NODE_COUNT_SERVER_CONN_OPEN().
PPERF_COUNTERSET_INSTANCE perfctr_instance |
Definition at line 104 of file node_win32_perfctr_provider.cc.
Referenced by node::InitPerfCountersWin32(), node::NODE_COUNT_GC_PERCENTTIME(), node::NODE_COUNT_HTTP_CLIENT_REQUEST(), node::NODE_COUNT_HTTP_CLIENT_RESPONSE(), node::NODE_COUNT_HTTP_SERVER_REQUEST(), node::NODE_COUNT_HTTP_SERVER_RESPONSE(), node::NODE_COUNT_NET_BYTES_RECV(), node::NODE_COUNT_NET_BYTES_SENT(), node::NODE_COUNT_PIPE_BYTES_RECV(), node::NODE_COUNT_PIPE_BYTES_SENT(), node::NODE_COUNT_SERVER_CONN_CLOSE(), and node::NODE_COUNT_SERVER_CONN_OPEN().
PerfSetCounterSetInfoFunc perfctr_setCounterSetInfo |
Definition at line 94 of file node_win32_perfctr_provider.cc.
Referenced by node::InitPerfCountersWin32().
PerfSetULongLongCounterValueFunc perfctr_setULongLongValue |
Definition at line 98 of file node_win32_perfctr_provider.cc.
Referenced by node::InitPerfCountersWin32().
PerfSetULongCounterValueFunc perfctr_setULongValue |
Definition at line 97 of file node_win32_perfctr_provider.cc.
Referenced by node::InitPerfCountersWin32(), and node::NODE_COUNT_GC_PERCENTTIME().
PerfStartProviderExFunc perfctr_startProvider |
Definition at line 92 of file node_win32_perfctr_provider.cc.
Referenced by node::InitPerfCountersWin32().
PerfStopProviderFunc perfctr_stopProvider |
Definition at line 93 of file node_win32_perfctr_provider.cc.
Referenced by node::InitPerfCountersWin32(), and node::TermPerfCountersWin32().