Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit da0ebf6

Browse filesBrowse files
bnoordhuisFishrock123
authored andcommitted
src: lint node_win32_perfctr_provider.cc
PR-URL: #7462 Reviewed-By: Trevor Norris <trev.norris@gmail.com>
1 parent 8a31b23 commit da0ebf6
Copy full SHA for da0ebf6

File tree

Expand file treeCollapse file tree

2 files changed

+20
-11
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+20
-11
lines changed
Open diff view settings
Collapse file

‎Makefile‎

Copy file name to clipboardExpand all lines: Makefile
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,6 @@ CPPLINT_EXCLUDE ?=
674674
CPPLINT_EXCLUDE += src/node_lttng.cc
675675
CPPLINT_EXCLUDE += src/node_root_certs.h
676676
CPPLINT_EXCLUDE += src/node_lttng_tp.h
677-
CPPLINT_EXCLUDE += src/node_win32_perfctr_provider.cc
678677
CPPLINT_EXCLUDE += src/queue.h
679678
CPPLINT_EXCLUDE += src/tree.h
680679
CPPLINT_EXCLUDE += src/v8abbr.h
Collapse file

‎src/node_win32_perfctr_provider.cc‎

Copy file name to clipboardExpand all lines: src/node_win32_perfctr_provider.cc
+20-10Lines changed: 20 additions & 10 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.