2. Use `p_start(name)` and `p_end(name)` around the code you need to measure.
3. Call `p_show(x,y,width)` to show a graph! (The frame times will reset after you call this.)
2. Use `p_start(name)` and `p_end(name)` around the code you need to measure.
3. Call `p_show(x,y,width)` to show a graph! (The frame times will reset after you call this.)
p_start("complicated 1")
for i=0,100 do
circfill(rnd()*128,rnd()*128,rnd()*100,rnd()*16)
p_start("complicated 1")
for i=0,100 do
circfill(rnd()*128,rnd()*128,rnd()*100,rnd()*16)
circ(rnd()*128,rnd()*128,rnd()*100,rnd()*16)
end
p_end("complicated 2")
circ(rnd()*128,rnd()*128,rnd()*100,rnd()*16)
end
p_end("complicated 2")