Skip to content

Commit 27c2d25

Browse files
bnoordhuisMyles Borins
authored and
Myles Borins
committed
src: lint node_win32_perfctr_provider.cc
PR-URL: #7462 Reviewed-By: Trevor Norris <[email protected]>
1 parent 0db3aa9 commit 27c2d25

File tree

2 files changed

+20
-11
lines changed

2 files changed

+20
-11
lines changed

Makefile

-1
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,6 @@ CPPLINT_EXCLUDE ?=
638638
CPPLINT_EXCLUDE += src/node_lttng.cc
639639
CPPLINT_EXCLUDE += src/node_root_certs.h
640640
CPPLINT_EXCLUDE += src/node_lttng_tp.h
641-
CPPLINT_EXCLUDE += src/node_win32_perfctr_provider.cc
642641
CPPLINT_EXCLUDE += src/queue.h
643642
CPPLINT_EXCLUDE += src/tree.h
644643
CPPLINT_EXCLUDE += src/v8abbr.h

src/node_win32_perfctr_provider.cc

+20-10
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ void TermPerfCountersWin32() {
193193

194194

195195
void NODE_COUNT_HTTP_SERVER_REQUEST() {
196-
if (NodeCounterProvider != nullptr && perfctr_incrementULongValue != nullptr) {
196+
if (NodeCounterProvider != nullptr &&
197+
perfctr_incrementULongValue != nullptr) {
197198
perfctr_incrementULongValue(NodeCounterProvider,
198199
perfctr_instance,
199200
NODE_COUNTER_HTTP_SERVER_REQUEST,
@@ -203,7 +204,8 @@ void NODE_COUNT_HTTP_SERVER_REQUEST() {
203204

204205

205206
void NODE_COUNT_HTTP_SERVER_RESPONSE() {
206-
if (NodeCounterProvider != nullptr && perfctr_incrementULongValue != nullptr) {
207+
if (NodeCounterProvider != nullptr &&
208+
perfctr_incrementULongValue != nullptr) {
207209
perfctr_incrementULongValue(NodeCounterProvider,
208210
perfctr_instance,
209211
NODE_COUNTER_HTTP_SERVER_RESPONSE,
@@ -213,7 +215,8 @@ void NODE_COUNT_HTTP_SERVER_RESPONSE() {
213215

214216

215217
void NODE_COUNT_HTTP_CLIENT_REQUEST() {
216-
if (NodeCounterProvider != nullptr && perfctr_incrementULongValue != nullptr) {
218+
if (NodeCounterProvider != nullptr &&
219+
perfctr_incrementULongValue != nullptr) {
217220
perfctr_incrementULongValue(NodeCounterProvider,
218221
perfctr_instance,
219222
NODE_COUNTER_HTTP_CLIENT_REQUEST,
@@ -223,7 +226,8 @@ void NODE_COUNT_HTTP_CLIENT_REQUEST() {
223226

224227

225228
void NODE_COUNT_HTTP_CLIENT_RESPONSE() {
226-
if (NodeCounterProvider != nullptr && perfctr_incrementULongValue != nullptr) {
229+
if (NodeCounterProvider != nullptr &&
230+
perfctr_incrementULongValue != nullptr) {
227231
perfctr_incrementULongValue(NodeCounterProvider,
228232
perfctr_instance,
229233
NODE_COUNTER_HTTP_CLIENT_RESPONSE,
@@ -233,7 +237,8 @@ void NODE_COUNT_HTTP_CLIENT_RESPONSE() {
233237

234238

235239
void NODE_COUNT_SERVER_CONN_OPEN() {
236-
if (NodeCounterProvider != nullptr && perfctr_incrementULongValue != nullptr) {
240+
if (NodeCounterProvider != nullptr &&
241+
perfctr_incrementULongValue != nullptr) {
237242
perfctr_incrementULongValue(NodeCounterProvider,
238243
perfctr_instance,
239244
NODE_COUNTER_SERVER_CONNS,
@@ -243,7 +248,8 @@ void NODE_COUNT_SERVER_CONN_OPEN() {
243248

244249

245250
void NODE_COUNT_SERVER_CONN_CLOSE() {
246-
if (NodeCounterProvider != nullptr && perfctr_decrementULongValue != nullptr) {
251+
if (NodeCounterProvider != nullptr &&
252+
perfctr_decrementULongValue != nullptr) {
247253
perfctr_decrementULongValue(NodeCounterProvider,
248254
perfctr_instance,
249255
NODE_COUNTER_SERVER_CONNS,
@@ -253,7 +259,8 @@ void NODE_COUNT_SERVER_CONN_CLOSE() {
253259

254260

255261
void NODE_COUNT_NET_BYTES_SENT(int bytes) {
256-
if (NodeCounterProvider != nullptr && perfctr_incrementULongLongValue != nullptr) {
262+
if (NodeCounterProvider != nullptr &&
263+
perfctr_incrementULongLongValue != nullptr) {
257264
perfctr_incrementULongLongValue(NodeCounterProvider,
258265
perfctr_instance,
259266
NODE_COUNTER_NET_BYTES_SENT,
@@ -263,7 +270,8 @@ void NODE_COUNT_NET_BYTES_SENT(int bytes) {
263270

264271

265272
void NODE_COUNT_NET_BYTES_RECV(int bytes) {
266-
if (NodeCounterProvider != nullptr && perfctr_incrementULongLongValue != nullptr) {
273+
if (NodeCounterProvider != nullptr &&
274+
perfctr_incrementULongLongValue != nullptr) {
267275
perfctr_incrementULongLongValue(NodeCounterProvider,
268276
perfctr_instance,
269277
NODE_COUNTER_NET_BYTES_RECV,
@@ -293,7 +301,8 @@ void NODE_COUNT_GC_PERCENTTIME(unsigned int percent) {
293301

294302

295303
void NODE_COUNT_PIPE_BYTES_SENT(int bytes) {
296-
if (NodeCounterProvider != nullptr && perfctr_incrementULongLongValue != nullptr) {
304+
if (NodeCounterProvider != nullptr &&
305+
perfctr_incrementULongLongValue != nullptr) {
297306
perfctr_incrementULongLongValue(NodeCounterProvider,
298307
perfctr_instance,
299308
NODE_COUNTER_PIPE_BYTES_SENT,
@@ -303,7 +312,8 @@ void NODE_COUNT_PIPE_BYTES_SENT(int bytes) {
303312

304313

305314
void NODE_COUNT_PIPE_BYTES_RECV(int bytes) {
306-
if (NodeCounterProvider != nullptr && perfctr_incrementULongLongValue != nullptr) {
315+
if (NodeCounterProvider != nullptr &&
316+
perfctr_incrementULongLongValue != nullptr) {
307317
perfctr_incrementULongLongValue(NodeCounterProvider,
308318
perfctr_instance,
309319
NODE_COUNTER_PIPE_BYTES_RECV,

0 commit comments

Comments
 (0)