From f3aaa6e2a241bbb0597c6f33a289b03084a68b80 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Tue, 10 Jul 2007 16:16:20 -0700 Subject: [PATCH] Add trender_bookmark page --- src/trender_bookmark.mdwn | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/trender_bookmark.mdwn diff --git a/src/trender_bookmark.mdwn b/src/trender_bookmark.mdwn new file mode 100644 index 0000000..9a4f15a --- /dev/null +++ b/src/trender_bookmark.mdwn @@ -0,0 +1,39 @@ +[[meta title="On-demand Trender"]] + +[[tag performance]] + +Vladimir Vukićević pointed me to an old [[blog +entry](http://blog.vlad1.com/archives/2005/10/28/74/) where he +provides a useful "bookmarklet" that I thought I'd share. It makes it +easy to measure how long mozilla spends rendering any particular web +page. + +My version is slightly tweaked from Vladimir's and is available here: +Time Render. + +The differences in mine are that it runs for 300 iterations by default +instead of just 10, (long enough to collect very healthy profile +information), and that it emits its result by dumping to stdout or +stderr instead of popping up an alert box. Not only is the alert box +hard to use when it has 300 values laid out without line-wrapping, +but I do X server experiments where I need to measure performance even +when things are rendering incorrectly, (so if the results are only +displayed on the X server they are useless to me). + +To use this, first you'll need a recent Firefox, (I'm using a daily +build here which works, where the system 2.0 version does not seem +to). Just drag-and-drop the above link to the bookmark toolbar, (and +yes, I had to turn it on just for that). You might also need to go to +the "about:config" location in the toolbar and create a new Boolean +entry, (right-click to find that), named +`browser.dom.window.dump.enabled` and set it to `True`. + +At that point yous should be all setup. Just browse to a web page of +interest and click the "Time Render" bookmark to measure the rendering +performance of Mozilla on that page. + -- 2.43.0