summaryrefslogtreecommitdiff
path: root/src/node_counters.h
AgeCommit message (Collapse)Author
2017-09-14src: refactor `#include` handlingAnna Henningsen
`node_internals.h` already includes the most common headers, so double includes can be avoided in a lot of cases. Also don’t include `node_internals.h` from `node.h` implicitly anymore, as that is mostly unnecessary. PR-URL: https://github.com/nodejs/node/pull/14697 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
2017-03-10meta: restore original copyright headerJames M Snell
A prior io.js era commit inappropriately removed the original copyright statements from the source. This restores those in any files still remaining from that edit. Ref: https://github.com/nodejs/TSC/issues/174 Ref: https://github.com/nodejs/node/pull/10599 PR-URL: https://github.com/nodejs/node/pull/10155 Note: This PR was required, reviewed-by and approved by the Node.js Foundation Legal Committee and the TSC. There is no `Approved-By:` meta data.
2016-05-25src: add include guards to internal headersBen Noordhuis
For consistency with the newly added src/base64.h header, check that NODE_WANT_INTERNALS is defined and set in internal headers. PR-URL: https://github.com/nodejs/node/pull/6948 Refs: https://github.com/nodejs/node/pull/6910 Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trevor Norris <trev.norris@gmail.com>
2015-09-06src: replace usage of v8::Handle with v8::LocalMichaël Zasso
v8::Handle is deprecated: https://codereview.chromium.org/1224623004 PR-URL: https://github.com/nodejs/io.js/pull/2202 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2015-03-05src: fix -Wempty-body compiler warningsBen Noordhuis
Turn counter macros into no-op instructions when counters are disabled. Evaluating to nothing makes gcc complain when the macro is used in a conditional. Fixes the following warning: ../src/tls_wrap.cc:320:5: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] NODE_COUNT_NET_BYTES_SENT(write_size_); ^ PR-URL: https://github.com/iojs/io.js/pull/974 Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
2015-01-12Remove excessive copyright/license boilerplateisaacs
The copyright and license notice is already in the LICENSE file. There is no justifiable reason to also require that it be included in every file, since the individual files are not individually distributed except as part of the entire package.
2014-10-10src: fixes for win32Ray Donnelly
Update following macros: * NODE_NET_SOCKET_{READ,WRITE}() - they both take 4 arguments, not 2 * NODE_COUNT_GC_PERCENTTIME() - it takes a single argument. Use INT_PTR instead of INT32 in pointer casts in win32_etw provider. PR-URL: https://github.com/joyent/node/pull/8294 Reviewed-By: Fedor Indutny <fedor@indutny.com>
2014-02-22src: remove `node_isolate` from sourceFedor Indutny
fix #6899
2013-07-31src: more lint after cpplint tighteningBen Noordhuis
Commit 847c6d9 adds a 'project headers before system headers' check to cpplint. Update the files in src/ to make the linter pass again.
2013-07-31src: lint c++ codeFedor Indutny
2012-11-21windows: add tracing with performance countersScott Blomquist
Patch by Henry Rawas and Scott Blomquist.