1 // Copyright Joyent, Inc. and other Node contributors.
3 // Permission is hereby granted, free of charge, to any person obtaining a
4 // copy of this software and associated documentation files (the
5 // "Software"), to deal in the Software without restriction, including
6 // without limitation the rights to use, copy, modify, merge, publish,
7 // distribute, sublicense, and/or sell copies of the Software, and to permit
8 // persons to whom the Software is furnished to do so, subject to the
9 // following conditions:
11 // The above copyright notice and this permission notice shall be included
12 // in all copies or substantial portions of the Software.
14 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
17 // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
18 // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
19 // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
20 // USE OR OTHER DEALINGS IN THE SOFTWARE.
23 probe node_net_server_connection = process("node").mark("net__server__connection")
25 remote = user_string($arg2);
29 probestr = sprintf("%s(remote=%s, port=%d, fd=%d)",
36 probe node_net_stream_end = process("node").mark("net__stream__end")
38 remote = user_string($arg2);
42 probestr = sprintf("%s(remote=%s, port=%d, fd=%d)",
49 probe node_net_socket_write = process("node").mark("net__socket__write")
52 remote = user_string($arg3);
56 probestr = sprintf("%s(bytes=%d, remote=%s, port=%d, fd=%d)",
64 probe node_net_socket_read = process("node").mark("net__socket__read")
67 remote = user_string($arg3);
71 probestr = sprintf("%s(bytes=%d, remote=%s, port=%d, fd=%d)",
79 probe node_http_server_request = process("node").mark("http__server__request")
81 remote = user_string($arg3);
83 method = user_string($arg5);
84 url = user_string($arg6);
87 probestr = sprintf("%s(remote=%s, port=%d, method=%s, url=%s, fd=%d)",
96 probe node_http_server_response = process("node").mark("http__server__response")
98 remote = user_string($arg2);
102 probestr = sprintf("%s(remote=%s, port=%d, fd=%d)",
109 probe node_http_client_request = process("node").mark("http__client__request")
111 remote = user_string($arg3);
113 method = user_string($arg5);
114 url = user_string($arg6);
117 probestr = sprintf("%s(remote=%s, port=%d, method=%s, url=%s, fd=%d)",
126 probe node_http_client_response = process("node").mark("http__client__response")
128 remote = user_string($arg2);
132 probestr = sprintf("%s(remote=%s, port=%d, fd=%d)",
139 probe node_gc_start = process("node").mark("gc__start")
144 if ($arg1 == scavenge)
145 type = "kGCTypeScavenge";
146 else if ($arg1 == compact)
147 type = "kGCTypeMarkSweepCompact";
153 probestr = sprintf("%s(type=%s,flags=%d)",
159 probe node_gc_stop = process("node").mark("gc__stop")
164 if ($arg1 == scavenge)
165 type = "kGCTypeScavenge";
166 else if ($arg1 == compact)
167 type = "kGCTypeMarkSweepCompact";
173 probestr = sprintf("%s(type=%s,flags=%d)",