diff options
| author | Omar Rizwan <omar@omar.website> | 2023-08-14 03:07:57 +0000 |
|---|---|---|
| committer | Omar Rizwan <omar@omar.website> | 2023-08-14 03:07:57 +0000 |
| commit | 3ddc9e924e7e747f3d75501eaa8cd731d67f5e7c (patch) | |
| tree | ae3a5a2160d6bcb94f814c51da6a340d25f252d4 /virtual-programs | |
| parent | display: Show render/commit split (diff) | |
| download | folk-3ddc9e924e7e747f3d75501eaa8cd731d67f5e7c.tar.gz folk-3ddc9e924e7e747f3d75501eaa8cd731d67f5e7c.zip | |
More small monitoring improvements. Remote flamegraph tid
Diffstat (limited to 'virtual-programs')
| -rw-r--r-- | virtual-programs/display.folk | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/virtual-programs/display.folk b/virtual-programs/display.folk index d5623d10..5e16797f 100644 --- a/virtual-programs/display.folk +++ b/virtual-programs/display.folk @@ -80,19 +80,20 @@ On process { } set displayCommands [lmap sublist [lsort -command lcomp $displayList] {lindex $sublist 1}] + set renderTime [baretime [list foreach command $displayCommands { {*}$command }]] set commitTime [baretime commitThenClearStaging] - set inLastSecond 0 + set framesInLastSecond 0 set now [clock milliseconds] lappend frames $now foreach frame $frames { if {$frame > $now - 1000} { - incr inLastSecond + incr framesInLastSecond } } - set frames [lreplace $frames 0 end-$inLastSecond] - Commit { Claim the display time is "render $renderTime us + commit $commitTime us ($inLastSecond fps)" } + set frames [lreplace $frames 0 end-$framesInLastSecond] + Commit { Claim the display time is "render $renderTime us + commit $commitTime us ($framesInLastSecond fps)" } } } # TODO: remove this compatibility hack |
