EngineProfiling: filter_data.diff

File filter_data.diff, 851 bytes (added by Yves, 4 years ago)

Changes to filter the output of extract.pl

  • extract.pl

     
    3333 
    3434print "var graphData = [\n"; 
    3535my $n = 0; 
     36my @events = ("total","dispatch events","gui sim update","gui tick","hotload","progressive load","render","renderer incremental load","sim interpolate","sim update","swap buffers","unlogged"); 
    3637for my $k (sort keys %s) { 
    37     print ",\n" if $n++; 
    38     print "{label: '$k', data:["; 
    39     for my $t (0..$#{$s{$k}}) { 
    40         print "," if $t; 
    41         print "[$t,".($s{$k}[$t] || 0)."]"; 
    42     } 
    43     print "]}"; 
     38    if ($k ~~ @events){ 
     39        print ",\n" if $n++; 
     40        print "{label: '$k', data:["; 
     41        for my $t (0..$#{$s{$k}}) { 
     42        print "," if $t; 
     43        print "[$t,".($s{$k}[$t] || 0)."]"; 
     44        } 
     45        print "]}"; 
     46    } 
    4447} 
    4548print "\n];\n";