EngineProfiling: filter_data.diff

File filter_data.diff, 722 bytes (added by elexis, 16 months ago)

"Changes to filter the output of extract.pl"

  • source/tools/replayprofile/extract.pl

    while (<$f>) { 
    3333    }
    3434}
    3535
    3636print "[\n";
    3737my $n = 0;
     38my @events = ("total","dispatch events","gui sim update","gui tick","hotload","progressive load","render","renderer incremental load","sim interpolate","sim update","swap buffers","unlogged");
    3839for my $k (sort keys %s) {
     40    next if (!($k ~~ @events));
    3941    print ",\n" if $n++;
    4042    print "{label: '$k', data:[";
    4143    for my $t (0..$#{$s{$k}}) {
    4244        print "," if $t;
    4345        print "[$t,".($s{$k}[$t] || 0)."]";