Skip to content

Instantly share code, notes, and snippets.

//timestamp: [time difference from previous] message
32: [32µs] about to do this.each (jQuery.fn.each)
50: [18µs] entered this.each, about to do .attr and MathElement[] lookup
80: [30µs] done, there is a block!
84: [4µs] got cursor, about to do cursor.clearSelection()
89: [5µs] did cursor.clearSelection(), about to do block.renderLatex(latex)
431: [342µs] parsed latex
436: [5µs] cleared children from edit tree
447: [11µs] adopted into edit tree
533: [86µs] detached textarea
72: [72µs] about to do this.each (jQuery.fn.each)
87: [15µs] entered this.each, about to do .attr and MathElement[] lookup
117: [30µs] done, there is a block!
120: [3µs] got cursor, about to do cursor.clearSelection()
124: [4µs] did cursor.clearSelection(), about to do block.renderLatex(latex)
128: [4µs] got jQ, about to empty except for textarea
307: [179µs] emptied jQ, about to delete children from edit tree
311: [4µs] appending cursor
616: [305µs] appended cursor, this.cursor.writeLatex()
621: [5µs] cleared upDown cache
28: [28µs] about to do this.each (jQuery.fn.each)
44: [16µs] entered this.each, about to do .attr and MathElement[] lookup
73: [29µs] done, there is a block!
76: [3µs] got cursor, about to do cursor.clearSelection()
80: [4µs] did cursor.clearSelection(), about to do block.renderLatex(latex)
235: [155µs] parsed latex
239: [4µs] cleared children from edit tree
246: [7µs] adopted into edit tree
318: [72µs] detached textarea
380: [62µs] generated html
12: [12µs] about to do this.each (jQuery.fn.each)
26: [14µs] entered this.each, about to do .attr and MathElement[] lookup
54: [28µs] done, there is a block!
59: [5µs] got cursor, about to do cursor.clearSelection()
63: [4µs] did cursor.clearSelection(), about to do block.renderLatex(latex)
174: [111µs] parsed latex
177: [3µs] cleared children from edit tree
185: [8µs] adopted into edit tree
248: [63µs] generated html
575: [327µs] set innerHTML
@laughinghan
laughinghan / gist:5938498
Last active December 19, 2015 10:09
Typical profiling logs as of mathquill/mathquill@e07bd0e
3: [3µs] about to do this.each (jQuery.fn.each)
14: [11µs] entered this.each, about to do .attr and MathElement[] lookup
40: [26µs] done, there is a block!
41: [1µs] got jQ, about to empty except for textarea
233: [192µs] emptied jQ, aboout to postOrder dispose
442: [209µs] postOrder-ed dispose, about to delete children from edit tree
445: [3µs] inserting cursor at right end
732: [287µs] inserted crsor, this.cursor.writeLatex()
874: [142µs] notified 'edit'
1531: [657µs] parsed latex
3: [3µs] about to do this.each (jQuery.fn.each)
13: [10µs] entered this.each, about to do .attr and MathElement[] lookup
37: [24µs] done, there is a block!
438: [401µs] parsed latex
617: [179µs] postOrder-ed dispose, about to delete children from edit tree
619: [2µs] cleared children from edit tree
672: [53µs] adopted into edit tree
733: [61µs] detached textarea
886: [153µs] generated html
1179: [293µs] set innerHTML
4: [4µs] about to do this.each (jQuery.fn.each)
16: [12µs] entered this.each, about to do .attr and MathElement[] lookup
45: [29µs] done, there is a block!
470: [425µs] parsed latex
679: [209µs] postOrder-ed dispose, about to delete children from edit tree
682: [3µs] cleared children from edit tree
747: [65µs] adopted into edit tree
835: [88µs] detached textarea
1043: [208µs] generated html
1454: [411µs] set innerHTML
3: [3µs] about to do this.each (jQuery.fn.each)
14: [11µs] entered this.each, about to do .attr and MathElement[] lookup
41: [27µs] done, there is a block!
530: [489µs] parsed latex
776: [246µs] postOrder-ed dispose, about to delete children from edit tree
779: [3µs] cleared children from edit tree
862: [83µs] adopted into edit tree
1052: [190µs] generated html
1449: [397µs] set innerHTML
1862: [413µs] jQize-d
19: [19µs] about to do this.each (jQuery.fn.each)
30: [11µs] entered this.each, about to do .attr and MathElement[] lookup
55: [25µs] done, there is a block!
555: [500µs] parsed latex
801: [246µs] postOrder-ed dispose, about to delete children from edit tree
803: [2µs] cleared children from edit tree
885: [82µs] adopted into edit tree
1100: [215µs] generated html
1423: [323µs] set innerHTML
1637: [214µs] jQize-d
#!/usr/bin/env node
if (process.stdin.isTTY) {
console.log('Usage: Inside the directory with all the sent text message files:');
console.log();
console.log('ls | path/to/contacts_extractor.js | sort | uniq | ./mkvcards -o /path/to/output_dir/');
process.exit();
}
var DEBUG_MODE = '-d --debug'.split(' ').indexOf(process.argv.slice(-1)[0]) > -1;