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 19namespace node { 20namespace report { 21// Function declarations - utility functions in src/node_report_utils.cc 22void WalkHandle(uv_handle_t* h, void* arg); 23 24template <typename T> 25std::string ValueToHexString(T value) { 26 std::stringstream hex; 27 28 hex << "0x" << std::setfill('0') << std::setw(sizeof(T) * 2) << std::hex << 29 value; 30 return hex.str(); 31} 32 33// Function declarations - export functions in src/node_report_module.cc 34void WriteReport(const v8::FunctionCallbackInfo<v8::Value>& info); 35void 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_ 43