Skip to content

Commit

Permalink
Added user time markers for when the pie charts get displayed (they a…
Browse files Browse the repository at this point in the history
…re often very slow)
  • Loading branch information
pmeenan committed Jul 11, 2013
1 parent 8b21e3a commit c804108
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions www/breakdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,11 @@ function drawTable() {
tableBytesFv.draw(viewBytesFv, {showRowNumber: false, sortColumn: 1, sortAscending: false});

var pieRequestsFv = new google.visualization.PieChart(document.getElementById('pieRequestsFv_div'));
google.visualization.events.addListener(pieRequestsFv, 'ready', function(){markUserTime('aft.Requests Pie');});
pieRequestsFv.draw(fvRequests, {width: 450, height: 300, title: 'Requests', colors: fvColors});

var pieBytesFv = new google.visualization.PieChart(document.getElementById('pieBytesFv_div'));
google.visualization.events.addListener(pieBytesFv, 'ready', function(){markUserTime('aft.Bytes Pie');});
pieBytesFv.draw(fvBytes, {width: 450, height: 300, title: 'Bytes', colors: fvColors});

<?php if( count($breakdownRv) ) { ?>
Expand Down
2 changes: 2 additions & 0 deletions www/domains.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,11 @@ function drawTable() {
tableBytesFv.draw(viewBytesFv, {showRowNumber: false, sortColumn: 1, sortAscending: false});

var pieRequestsFv = new google.visualization.PieChart(document.getElementById('pieRequestsFv_div'));
google.visualization.events.addListener(pieRequestsFv, 'ready', function(){markUserTime('aft.Requests Pie');});
pieRequestsFv.draw(fvRequests, {width: 450, height: 300, title: 'Requests'});

var pieBytesFv = new google.visualization.PieChart(document.getElementById('pieBytesFv_div'));
google.visualization.events.addListener(pieBytesFv, 'ready', function(){markUserTime('aft.Bytes Pie');});
pieBytesFv.draw(fvBytes, {width: 450, height: 300, title: 'Bytes'});

<?php if( count($breakdownRv) ) { ?>
Expand Down

0 comments on commit c804108

Please sign in to comment.