Timelines view

15 views
Skip to first unread message

Chuck Remes

unread,
Jun 25, 2011, 10:57:22 AM6/25/11
to codespeed
I'd like to modify the default setup for the Timelines view where it displays *all* benchmark miniplots in a grid. I want it to default to selecting the first one in the list to speed up render time.

I poked through the templates/codespeed/timeline.html file but I don't see where that default is set or how to override it. Sorry, but I'm just not that familiar with web apps and html so I'm struggling a bit here. :)

cr

Miquel Torres

unread,
Jun 25, 2011, 4:14:40 PM6/25/11
to code...@googlegroups.com
You are doing fine.

Here is a link to the link you can change:
https://github.com/tobami/codespeed/blob/master/speedcenter/templates/codespeed/timeline.html#L258

Intead of {{ defaultbenchmark }} (which will be "grid"), put "69" in
there. Not kidding, it seems to be the id of the first benchmark ;-)

The line should now read:
$("input:radio[name='benchmark']").filter('[value=69]').attr('checked', true);

Btw., a lot of fixes from Stefan are being merged, so there should be
a 0.8.1 release shortly. I will try to squeeze in the default
benchmark setting for the timeline!

2011/6/25 Chuck Remes <cremes....@mac.com>:

Chuck Remes

unread,
Jun 28, 2011, 4:25:41 PM6/28/11
to code...@googlegroups.com

On Jun 25, 2011, at 3:14 PM, Miquel Torres wrote:

> You are doing fine.
>
> Here is a link to the link you can change:
> https://github.com/tobami/codespeed/blob/master/speedcenter/templates/codespeed/timeline.html#L258
>
> Intead of {{ defaultbenchmark }} (which will be "grid"), put "69" in
> there. Not kidding, it seems to be the id of the first benchmark ;-)
>
> The line should now read:
> $("input:radio[name='benchmark']").filter('[value=69]').attr('checked', true);
>
> Btw., a lot of fixes from Stefan are being merged, so there should be
> a 0.8.1 release shortly. I will try to squeeze in the default
> benchmark setting for the timeline!

I tried this change but it didn't work. Maybe the "69" is different between installations due to database identity values or something. Was there a db query you ran to determine that number? If so, share it with me and I'll run it over here to see if it's a value other than 69.

BTW, when using 69 and clicking on the Timeline tab just shows the "loading..." graphic forever. It gives the impression that the page has hung even though I can click on any of the radio buttons and immediately get a graph.

cr

Miquel Torres

unread,
Jun 29, 2011, 2:54:22 AM6/29/11
to code...@googlegroups.com
OK, you are right. Not the ID (which *is* 69 as you can see when you
inspect the html), but the name should be in there. So make it:

$("input:radio[name='benchmark']").filter('[value=core/array/bench_append/array
append]').attr('checked', true);

2011/6/28 Chuck Remes <cremes....@mac.com>:

Chuck Remes

unread,
Jun 29, 2011, 10:54:59 AM6/29/11
to code...@googlegroups.com
That worked perfectly. Thank you.

cr
Reply all
Reply to author
Forward
0 new messages