|
webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Functions | |
| function | plotTimingTest (filename) fid |
| while | ischar (line) if length(line) |
| if ~foundStart if | strncmp (line, testName, length(testName)) foundStart |
| end | fclose (fid) |
| timeStamps (wrapIdx+1:end) | |
| plot (timeStamps, decTime(:, 2), 'r') | |
| plot (timeStamps, waitTime(:, 3), 'g') | |
| plot (timeStamps(2:end), diff(renderTime(:, 2)), 'b') | |
| legend ('Decode time', 'Max wait time', 'Render time diff') | |
Variables | |
| % | DEBUG |
| __pad6__ | |
| __pad7__ | |
| Frame | decoded |
| __pad8__ | |
| timeStamp | |
| __pad9__ | |
| timeStampMs | |
| decTime = [] | |
| waitTime = [] | |
| renderTime = [] | |
| foundStart = 0 | |
| testName = 'Stochastic test 1' | |
| continue | |
| end | lineOrig = line |
| line = line(72:end) | |
| end [p, count] = sscanf(line, 'Frame decoded: timeStamp=%lu decTime=%d maxDecTime=%d, at %lu') | |
| if | count |
| p | |
| % Compensate for wrap arounds and start counting from zero | timeStamps = waitTime(:, 1) |
| tsDiff = diff(timeStamps) | |
| wrapIdx = find(tsDiff < 0) | |
| figure | |
| hold | on |
| plot | ( | timeStamps | , |
| decTime(:, 2) | , | ||
| 'r' | |||
| ) |
| plot | ( | timeStamps | , |
| waitTime(:, 3) | , | ||
| 'g' | |||
| ) |
| plot | ( | timeStamps(2:end) | , |
| diff(renderTime(:, 2)) | , | ||
| 'b' | |||
| ) |
| __pad6__ |
| __pad7__ |
| __pad8__ |
| __pad9__ |
| continue |
| Stochastic test % DEBUG |
| Frame decoded |
| decTime = [] |
| figure |
| foundStart = 0 |
| hold on |
| p |
| renderTime = [] |
| testName = 'Stochastic test 1' |
| timeStamp |
| timeStampMs |
| timeStamps = waitTime(:, 1) |
| tsDiff = diff(timeStamps) |
| waitTime = [] |
1.8.13