Browse Source

src: lint node_win32_perfctr_provider.cc

PR-URL: https://github.com/nodejs/node/pull/7462
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
v7.x
Ben Noordhuis 9 years ago
parent
commit
a26c3cd54f
  1. 1
      Makefile
  2. 30
      src/node_win32_perfctr_provider.cc

1
Makefile

@ -674,7 +674,6 @@ CPPLINT_EXCLUDE ?=
CPPLINT_EXCLUDE += src/node_lttng.cc
CPPLINT_EXCLUDE += src/node_root_certs.h
CPPLINT_EXCLUDE += src/node_lttng_tp.h
CPPLINT_EXCLUDE += src/node_win32_perfctr_provider.cc
CPPLINT_EXCLUDE += src/queue.h
CPPLINT_EXCLUDE += src/tree.h
CPPLINT_EXCLUDE += src/v8abbr.h

30
src/node_win32_perfctr_provider.cc

@ -193,7 +193,8 @@ void TermPerfCountersWin32() {
void NODE_COUNT_HTTP_SERVER_REQUEST() {
if (NodeCounterProvider != nullptr && perfctr_incrementULongValue != nullptr) {
if (NodeCounterProvider != nullptr &&
perfctr_incrementULongValue != nullptr) {
perfctr_incrementULongValue(NodeCounterProvider,
perfctr_instance,
NODE_COUNTER_HTTP_SERVER_REQUEST,
@ -203,7 +204,8 @@ void NODE_COUNT_HTTP_SERVER_REQUEST() {
void NODE_COUNT_HTTP_SERVER_RESPONSE() {
if (NodeCounterProvider != nullptr && perfctr_incrementULongValue != nullptr) {
if (NodeCounterProvider != nullptr &&
perfctr_incrementULongValue != nullptr) {
perfctr_incrementULongValue(NodeCounterProvider,
perfctr_instance,
NODE_COUNTER_HTTP_SERVER_RESPONSE,
@ -213,7 +215,8 @@ void NODE_COUNT_HTTP_SERVER_RESPONSE() {
void NODE_COUNT_HTTP_CLIENT_REQUEST() {
if (NodeCounterProvider != nullptr && perfctr_incrementULongValue != nullptr) {
if (NodeCounterProvider != nullptr &&
perfctr_incrementULongValue != nullptr) {
perfctr_incrementULongValue(NodeCounterProvider,
perfctr_instance,
NODE_COUNTER_HTTP_CLIENT_REQUEST,
@ -223,7 +226,8 @@ void NODE_COUNT_HTTP_CLIENT_REQUEST() {
void NODE_COUNT_HTTP_CLIENT_RESPONSE() {
if (NodeCounterProvider != nullptr && perfctr_incrementULongValue != nullptr) {
if (NodeCounterProvider != nullptr &&
perfctr_incrementULongValue != nullptr) {
perfctr_incrementULongValue(NodeCounterProvider,
perfctr_instance,
NODE_COUNTER_HTTP_CLIENT_RESPONSE,
@ -233,7 +237,8 @@ void NODE_COUNT_HTTP_CLIENT_RESPONSE() {
void NODE_COUNT_SERVER_CONN_OPEN() {
if (NodeCounterProvider != nullptr && perfctr_incrementULongValue != nullptr) {
if (NodeCounterProvider != nullptr &&
perfctr_incrementULongValue != nullptr) {
perfctr_incrementULongValue(NodeCounterProvider,
perfctr_instance,
NODE_COUNTER_SERVER_CONNS,
@ -243,7 +248,8 @@ void NODE_COUNT_SERVER_CONN_OPEN() {
void NODE_COUNT_SERVER_CONN_CLOSE() {
if (NodeCounterProvider != nullptr && perfctr_decrementULongValue != nullptr) {
if (NodeCounterProvider != nullptr &&
perfctr_decrementULongValue != nullptr) {
perfctr_decrementULongValue(NodeCounterProvider,
perfctr_instance,
NODE_COUNTER_SERVER_CONNS,
@ -253,7 +259,8 @@ void NODE_COUNT_SERVER_CONN_CLOSE() {
void NODE_COUNT_NET_BYTES_SENT(int bytes) {
if (NodeCounterProvider != nullptr && perfctr_incrementULongLongValue != nullptr) {
if (NodeCounterProvider != nullptr &&
perfctr_incrementULongLongValue != nullptr) {
perfctr_incrementULongLongValue(NodeCounterProvider,
perfctr_instance,
NODE_COUNTER_NET_BYTES_SENT,
@ -263,7 +270,8 @@ void NODE_COUNT_NET_BYTES_SENT(int bytes) {
void NODE_COUNT_NET_BYTES_RECV(int bytes) {
if (NodeCounterProvider != nullptr && perfctr_incrementULongLongValue != nullptr) {
if (NodeCounterProvider != nullptr &&
perfctr_incrementULongLongValue != nullptr) {
perfctr_incrementULongLongValue(NodeCounterProvider,
perfctr_instance,
NODE_COUNTER_NET_BYTES_RECV,
@ -293,7 +301,8 @@ void NODE_COUNT_GC_PERCENTTIME(unsigned int percent) {
void NODE_COUNT_PIPE_BYTES_SENT(int bytes) {
if (NodeCounterProvider != nullptr && perfctr_incrementULongLongValue != nullptr) {
if (NodeCounterProvider != nullptr &&
perfctr_incrementULongLongValue != nullptr) {
perfctr_incrementULongLongValue(NodeCounterProvider,
perfctr_instance,
NODE_COUNTER_PIPE_BYTES_SENT,
@ -303,7 +312,8 @@ void NODE_COUNT_PIPE_BYTES_SENT(int bytes) {
void NODE_COUNT_PIPE_BYTES_RECV(int bytes) {
if (NodeCounterProvider != nullptr && perfctr_incrementULongLongValue != nullptr) {
if (NodeCounterProvider != nullptr &&
perfctr_incrementULongLongValue != nullptr) {
perfctr_incrementULongLongValue(NodeCounterProvider,
perfctr_instance,
NODE_COUNTER_PIPE_BYTES_RECV,

Loading…
Cancel
Save