Using perf:
$ perf record -g binary
$ perf script | stackcollapse-perf.pl | rust-unmangle | flamegraph.pl > flame.svg
NOTE: See @GabrielMajeri's comments below about the
-g
option.
// ==UserScript== | |
// @name Twitter Alt-Text to Title-Text | |
// @description Copy the alt attribute of twitter images into the title attribute, so that I can see the alt text on hover. | |
// @version 1 | |
// @grant none | |
// @include https://twitter.com/* | |
// ==/UserScript== | |
const SELECTORS = `.tweet .AdaptiveMedia-photoContainer img | |
, .Gallery-media img |
Using perf:
$ perf record -g binary
$ perf script | stackcollapse-perf.pl | rust-unmangle | flamegraph.pl > flame.svg
NOTE: See @GabrielMajeri's comments below about the
-g
option.
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<script type="application/javascript;version=1.7"> | |
var worker = new Worker('worker.js'); | |
var g; |