Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View ofrobots's full-sized avatar

Ali Ijaz Sheikh ofrobots

  • Google Inc.
  • SF Bay Area, CA
View GitHub Profile
[{"name":"require stream","ph":"X","pid":1,"ts":1962323992461.768,"dur":11.696044921875},{"name":"require crypto","ph":"X","pid":1,"ts":1962323993872.013,"dur":5.8330078125},{"name":"require crypto","ph":"X","pid":1,"ts":1962323994811.436,"dur":5.419921875},{"name":"require ./lib/rng","ph":"X","pid":1,"ts":1962323994585.088,"dur":234.883056640625},{"name":"require ./lib/bytesToUuid","ph":"X","pid":1,"ts":1962323994821.543,"dur":367.81396484375},{"name":"require ./v1","ph":"X","pid":1,"ts":1962323994286.623,"dur":906.032958984375},{"name":"require ./lib/rng","ph":"X","pid":1,"ts":1962323995425.908,"dur":16.453125},{"name":"require ./lib/bytesToUuid","ph":"X","pid":1,"ts":1962323995444.907,"dur":11.236083984375},{"name":"require ./v4","ph":"X","pid":1,"ts":1962323995194.995,"dur":263.123779296875},{"name":"require uuid","ph":"X","pid":1,"ts":1962323993926.368,"dur":1545.833984375},{"name":"require ./v1","ph":"X","pid":1,"ts":1962323993510.692,"dur":1986.89404296875},{"name":"require @opencensus/propagation-stac
[{"name":"require stream","ph":"X","pid":1,"ts":1962323992461.768,"dur":11.696044921875},{"name":"require crypto","ph":"X","pid":1,"ts":1962323993872.013,"dur":5.8330078125},{"name":"require crypto","ph":"X","pid":1,"ts":1962323994811.436,"dur":5.419921875},{"name":"require ./lib/rng","ph":"X","pid":1,"ts":1962323994585.088,"dur":234.883056640625},{"name":"require ./lib/bytesToUuid","ph":"X","pid":1,"ts":1962323994821.543,"dur":367.81396484375},{"name":"require ./v1","ph":"X","pid":1,"ts":1962323994286.623,"dur":906.032958984375},{"name":"require ./lib/rng","ph":"X","pid":1,"ts":1962323995425.908,"dur":16.453125},{"name":"require ./lib/bytesToUuid","ph":"X","pid":1,"ts":1962323995444.907,"dur":11.236083984375},{"name":"require ./v4","ph":"X","pid":1,"ts":1962323995194.995,"dur":263.123779296875},{"name":"require uuid","ph":"X","pid":1,"ts":1962323993926.368,"dur":1545.833984375},{"name":"require ./v1","ph":"X","pid":1,"ts":1962323993510.692,"dur":1986.89404296875},{"name":"require @opencensus/propagation-stac
### Keybase proof
I hereby claim:
* I am ofrobots on github.
* I am ofrobots (https://keybase.io/ofrobots) on keybase.
* I have a public key whose fingerprint is 5BD1 91B0 DE1E E962 806A 195D 1ACF 2C40 B073 C601
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am ofrobots on github.
  • I am ofrobots (https://keybase.io/ofrobots) on keybase.
  • I have a public key whose fingerprint is 0DFF 75C8 AC58 DF05 C442 A70F 67C8 BAAC 0F44 53DB

To claim this, I am signing this object:

@ofrobots
ofrobots / gist:0bdcab89771221ace68d
Last active May 24, 2019 08:53
Using V8's gdb macros for low level debugging
$ gdb --args ./iojs_g -pe 'process.hrtime([0,0])'
(gdb) source deps/v8/tools/gdbinit
(gdb) b node::Hrtime
Breakpoint 1 at 0x1282619: file ../src/node.cc, line 2028.
(gdb) r
Starting program: /usr/local/google/home/ofrobots/src/io.js/iojs_g -pe process.hrtime\(\[0,0\]\)
...
Breakpoint 1, node::Hrtime (args=...) at ../src/node.cc:2028
var async_wrap = process.binding('async_wrap');
var uid = 0;
var kCallInitHook = 0;
var asyncHooksObject = {};
function asyncInit() {
this._asyncQueue = { uid: ++uid };
process._rawDebug('init ' + this._asyncQueue.uid);
}