webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Functions | Variables
plotTimingTest.m File Reference

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
 

Function Documentation

◆ fclose()

end fclose ( fid  )

◆ ischar()

while ischar ( line  )

◆ legend()

legend ( 'Decode time ,
'Max wait time ,
'Render time diff'   
)

◆ plot() [1/3]

plot ( timeStamps  ,
decTime(:, 2)  ,
'r  
)

◆ plot() [2/3]

plot ( timeStamps  ,
waitTime(:, 3)  ,
'g  
)

◆ plot() [3/3]

plot ( timeStamps(2:end ,
diff(renderTime(:, 2))  ,
'b  
)

◆ plotTimingTest()

function plotTimingTest ( filename  )

◆ strncmp()

if ~foundStart if strncmp ( line  ,
testName  ,
length(testName  
)

◆ timeStamps()

timeStamps ( wrapIdx+1:end  )

Variable Documentation

◆ __pad6__

__pad6__

◆ __pad7__

__pad7__

◆ __pad8__

__pad8__

◆ __pad9__

__pad9__

◆ continue

continue

◆ count

Initial value:
== 4
decTime
Definition: plotTimingTest.m:9

◆ DEBUG

Stochastic test % DEBUG

◆ decoded

Frame decoded

◆ decTime

decTime = []

◆ end

end[p, count] = sscanf(line, 'Frame decoded: timeStamp=%lu decTime=%d maxDecTime=%d, at %lu')

◆ figure

figure

◆ foundStart

foundStart = 0

◆ line

end line = line(72:end)

◆ lineOrig

end lineOrig = line

◆ on

hold on

◆ p

p

◆ renderTime

renderTime = []

◆ testName

testName = 'Stochastic test 1'

◆ timeStamp

timeStamp
Initial value:
=3000 clock=10037 maxWaitTime=0
clock
Definition: parse_delay_file.m:40
% DEBUG
Definition: plotTimingTest.m:4

◆ timeStampMs

timeStampMs
Initial value:
=33 renderTime=54
line = fgetl(fid)
renderTime
Definition: plotTimingTest.m:11
line
Definition: plotTimingTest.m:20
if fid
Definition: parse_delay_file.m:4

◆ timeStamps

timeStamps = waitTime(:, 1)

◆ tsDiff

tsDiff = diff(timeStamps)

◆ waitTime

waitTime = []

◆ wrapIdx

wrapIdx = find(tsDiff < 0)