GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — node/src/node_lttng_provider.h at master · littledan/node Expand file tree/ Copy pathnode_lttng_provider.hMore file actions 102 lines (81 loc) · 3.43 KB / Copy pathnode_lttng_provider.hFile metadata and controls102 lines (81 loc) · 3.43 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 #ifndef SRC_NODE_LTTNG_PROVIDER_H_ #define SRC_NODE_LTTNG_PROVIDER_H_ #define TRACEPOINT_CREATE_PROBES #define TRACEPOINT_DEFINE #include "node_lttng_tp.h" namespace node { #define FOR_ALL_GC_TYPES(APPLY) \ APPLY(kGCTypeScavenge) \ APPLY(kGCTypeMarkSweepCompact) \ APPLY(kGCTypeAll) #define FOR_ALL_GC_CALLBACK_FLAGS(APPLY) \ APPLY(kNoGCCallbackFlags) \ APPLY(kGCCallbackFlagConstructRetainedObjectInfos) \ APPLY(kGCCallbackFlagForced) \ APPLY(kGCCallbackFlagSynchronousPhantomCallbackProcessing) void NODE_HTTP_SERVER_REQUEST(node_lttng_http_server_request_t* req, node_lttng_connection_t* conn, const char *remote, int port, const char *method, const char *url, int fd) { tracepoint(node, http_server_request, req->url, req->method, \ req->forwarded_for); } void NODE_HTTP_SERVER_RESPONSE(node_lttng_connection_t* conn, const char *remote, int port, int fd) { tracepoint(node, http_server_response, port, conn->remote, fd); } void NODE_HTTP_CLIENT_REQUEST(node_lttng_http_client_request_t* req, node_lttng_connection_t* conn, const char *remote, int port, const char *method, const char *url, int fd) { tracepoint(node, http_client_request, req->url, req->method); } void NODE_HTTP_CLIENT_RESPONSE(node_lttng_connection_t* conn, const char *remote, int port, int fd) { tracepoint(node, http_client_response, port, conn->remote, fd); } void NODE_NET_SERVER_CONNECTION(node_lttng_connection_t* conn, const char *remote, int port, int fd) { tracepoint(node, net_server_connection, conn->remote, port, fd, \ conn->buffered); } void NODE_NET_STREAM_END(node_lttng_connection_t* conn, const char *remote, int port, int fd) { tracepoint(node, net_stream_end, conn->remote, port, fd); } void NODE_GC_START(v8::GCType type, v8::GCCallbackFlags flags, v8::Isolate* isolate) { const char* typeStr = "Unkown GC Type"; const char* flagsStr = "Unknown GC Flag"; #define BUILD_IF(f) if (type == v8::GCType::f) { typeStr = #f; } FOR_ALL_GC_TYPES(BUILD_IF); #undef BUILD_IF #define BUILD_IF(f) if (flags == v8::GCCallbackFlags::f) { flagsStr = #f; } FOR_ALL_GC_CALLBACK_FLAGS(BUILD_IF); #undef BUILD_IF tracepoint(node, gc_start, typeStr, flagsStr); } void NODE_GC_DONE(v8::GCType type, v8::GCCallbackFlags flags, v8::Isolate* isolate) { const char* typeStr = "Unkown GC Type"; const char* flagsStr = "Unknown GC Flag"; #define BUILD_IF(f) if (type == v8::GCType::f) { typeStr = #f; } FOR_ALL_GC_TYPES(BUILD_IF); #undef BUILD_IF #define BUILD_IF(f) if (flags == v8::GCCallbackFlags::f) { flagsStr = #f; } FOR_ALL_GC_CALLBACK_FLAGS(BUILD_IF); #undef BUILD_IF tracepoint(node, gc_done, typeStr, flagsStr); } bool NODE_HTTP_SERVER_REQUEST_ENABLED() { return true; } bool NODE_HTTP_SERVER_RESPONSE_ENABLED() { return true; } bool NODE_HTTP_CLIENT_REQUEST_ENABLED() { return true; } bool NODE_HTTP_CLIENT_RESPONSE_ENABLED() { return true; } bool NODE_NET_SERVER_CONNECTION_ENABLED() { return true; } bool NODE_NET_STREAM_END_ENABLED() { return true; } } // namespace node #endif // SRC_NODE_LTTNG_PROVIDER_H_ |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |