/src/node/src/node_report.h
Line | Count | Source (jump to first uncovered line) |
1 | | #ifndef SRC_NODE_REPORT_H_ |
2 | | #define SRC_NODE_REPORT_H_ |
3 | | |
4 | | #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS |
5 | | |
6 | | #include "node.h" |
7 | | #include "node_buffer.h" |
8 | | #include "uv.h" |
9 | | #include "util.h" |
10 | | |
11 | | #ifndef _WIN32 |
12 | | #include <sys/types.h> |
13 | | #include <unistd.h> |
14 | | #endif |
15 | | |
16 | | #include <iomanip> |
17 | | #include <sstream> |
18 | | |
19 | | namespace node { |
20 | | namespace report { |
21 | | // Function declarations - utility functions in src/node_report_utils.cc |
22 | | void WalkHandle(uv_handle_t* h, void* arg); |
23 | | |
24 | | template <typename T> |
25 | 0 | std::string ValueToHexString(T value) { |
26 | 0 | std::stringstream hex; |
27 | |
|
28 | 0 | hex << "0x" << std::setfill('0') << std::setw(sizeof(T) * 2) << std::hex << |
29 | 0 | value; |
30 | 0 | return hex.str(); |
31 | 0 | } Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > node::report::ValueToHexString<unsigned long>(unsigned long) Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > node::report::ValueToHexString<long>(long) |
32 | | |
33 | | // Function declarations - export functions in src/node_report_module.cc |
34 | | void WriteReport(const v8::FunctionCallbackInfo<v8::Value>& info); |
35 | | void GetReport(const v8::FunctionCallbackInfo<v8::Value>& info); |
36 | | |
37 | | } // namespace report |
38 | | } // namespace node |
39 | | |
40 | | #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS |
41 | | |
42 | | #endif // SRC_NODE_REPORT_H_ |