Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OS-1680 update node-dtrace provider to 3336f6ebd2fc73c6cfd4d09be3d80a…
…5716aace8d (0.2.3)
- Loading branch information
1 parent
84c61f0
commit 6f7ff90
Showing
8 changed files
with
92 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// expected output: | ||
// | ||
// $ NODE_PATH=. sudo -E dtrace -Zn 'test*:::{trace(probemod)}' -c 'node test/disambiguation.js' | ||
// dtrace: description 'test*:::' matched 0 probes | ||
// dtrace: pid 73913 has exited | ||
// CPU ID FUNCTION:NAME | ||
// 0 33495 probe1:probe1 mod-0x100a11440 | ||
// 0 33498 probe1:probe1 mod-0x100e00160 | ||
|
||
var d = require('dtrace-provider'); | ||
|
||
var dtp = d.createDTraceProvider('test'); | ||
var p1 = dtp.addProbe('probe1', 'int', 'int'); | ||
var p2 = dtp.addProbe('probe2', 'int', 'int'); | ||
dtp.enable(); | ||
|
||
var dtp2 = d.createDTraceProvider('test'); | ||
var p1 = dtp2.addProbe('probe3', 'int', 'int'); | ||
var p2 = dtp2.addProbe('probe1', 'int', 'int'); | ||
dtp2.enable(); | ||
|
||
dtp.fire('probe1', function () { | ||
return ([12, 3]); | ||
}); | ||
|
||
dtp2.fire('probe1', function () { | ||
return ([12, 73]); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// expected output: | ||
// | ||
// $ NODE_PATH=. sudo -E dtrace -Zn 'test*:::{trace(probemod)}' -c 'node test/disambiguation2.js' | ||
// dtrace: description 'test*:::' matched 0 probes | ||
// dtrace: pid 73913 has exited | ||
// CPU ID FUNCTION:NAME | ||
// 0 33495 probe1:probe1 mymod1 | ||
// 0 33498 probe1:probe1 mymod2 | ||
|
||
var d = require('dtrace-provider'); | ||
|
||
var dtp = d.createDTraceProvider('test', 'mymod1'); | ||
var p1 = dtp.addProbe('probe1', 'int', 'int'); | ||
var p2 = dtp.addProbe('probe2', 'int', 'int'); | ||
dtp.enable(); | ||
|
||
var dtp2 = d.createDTraceProvider('test', 'mymod2'); | ||
var p1 = dtp2.addProbe('probe3', 'int', 'int'); | ||
var p2 = dtp2.addProbe('probe1', 'int', 'int'); | ||
dtp2.enable(); | ||
|
||
dtp.fire('probe1', function () { | ||
return ([12, 3]); | ||
}); | ||
|
||
dtp2.fire('probe1', function () { | ||
return ([12, 73]); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters