Skip to content

Instantly share code, notes, and snippets.

@InPermutation
Created July 16, 2013 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save InPermutation/6012441 to your computer and use it in GitHub Desktop.
Save InPermutation/6012441 to your computer and use it in GitHub Desktop.
MiniProfiler .profiler-label histogram hack
(function(){
var common={};
$("td.profiler-label").each(function(){var txt= $(this).text().trim(); if(!(txt in common))common[txt]=0; common[txt]++; });
var rg=[];
for(var c in common)
rg.push({name: c, val: common[c]});
rg.sort(function(a,b){return b.val-a.val;});
return rg;})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment