summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-05-21 10:01:28 +0200
committerPeter Wu <peter@lekensteyn.nl>2014-05-21 10:01:28 +0200
commitdd6e5fbbb759a37262dff252ec20013f25c19546 (patch)
treec6c3bb8fe10fdfef8cb2feb8ff9d1aaed74e1a8c
parent463bee2a5fe68e2652a89c07733164f6172ea1f6 (diff)
downloadd3viz-dd6e5fbbb759a37262dff252ec20013f25c19546.tar.gz
Enable profiling iff URL contains "profile"
-rw-r--r--bubble.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/bubble.js b/bubble.js
index ccc4f4a..7c10f83 100644
--- a/bubble.js
+++ b/bubble.js
@@ -339,8 +339,8 @@ function run() {
initSvg();
// Set PROFILE=1 to enable profiling when using the button.
-var ticks = 0, PROFILE = 1;
-if (/no-auto/.test(location.search)) {
+var ticks = 0, PROFILE = /\bprofile\b/.test(location.search);
+if (/\bno-auto\b/.test(location.search)) {
// advanced stuff here: profiling!
d3.select('body').append('button')
.style('position', 'absolute')