File tree Expand file tree Collapse file tree 7 files changed +18
-11
lines changed Expand file tree Collapse file tree 7 files changed +18
-11
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ describe('Stopper', () => {
5959 expect ( Stopper . toString ( 999.123456 ) ) . toMatch ( '999ms' ) ;
6060 expect ( Stopper . toString ( 5432.123456 ) ) . toMatch ( '5.432s' ) ;
6161 expect ( Stopper . toString ( 5 * 60e3 ) ) . toMatch ( '0:05:00' ) ;
62+ expect ( Stopper . toString ( 987654321.0123456789 ) ) . toMatch ( '274:20:54' ) ;
6263 } ) ;
6364} ) ;
6465
Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ export const ERRORS_IGNORED = [
22 'Could not establish connection. Receiving end does not exist.' ,
33 'The message port closed before a response was received.' ,
44] ;
5- export const TELEMETRY_FREQUENCY_30PS = 33.3333333333 ; //MS
5+ export const TELEMETRY_FREQUENCY_30PS = 33.3333333333 ; // ms
66export const TELEMETRY_FREQUENCY_1PS = 1000 ; // ms
77export const MAX_TRAFFIC_DURATION_BEFORE_AUTOPAUSE = 2e3 ; // ms
8- export const FRAME_1of60 = 0.0166666666667 ;
8+ export const FRAME_1of60 = 0.0166666666667 ; // ms
99export const VARIABLE_ANIMATION_THROTTLE = 3500 ; // eye blinking average frequency
1010export const CALLED_ABORTED_TOOLTIP = '<called>-<aborted>/<abort-locations>' ;
1111
@@ -99,7 +99,7 @@ export const MEDIA_ELEMENT_PROPS = [
9999 'videoHeight' ,
100100] ;
101101
102- export const MEDIA_ELEMENT_TOGGABLE_PROPS = new Set ( [
102+ export const MEDIA_ELEMENT_TOGGABLE_PROPS = /* @__PURE__ */ new Set ( [
103103 'autoplay' ,
104104 'playsInline' ,
105105 'loop' ,
Original file line number Diff line number Diff line change @@ -65,8 +65,8 @@ export class Stopper {
6565 return `${ s } .${ ms . toString ( ) . padStart ( 3 , '0' ) } s` ;
6666 }
6767
68- const h = Math . trunc ( msTime / 1e3 / 60 / 60 ) ;
69- const m = Math . trunc ( msTime / 1e3 / 60 ) % 60 ;
68+ const h = Math . trunc ( msTime / 3600e3 ) ;
69+ const m = Math . trunc ( msTime / 60e3 ) % 60 ;
7070 const s = Math . trunc ( msTime / 1e3 ) % 60 ;
7171
7272 return `${ h . toString ( ) . padStart ( 2 , '0' ) } :${ m
@@ -246,3 +246,7 @@ export class MeanAggregator {
246246export function trim2microsecond ( ms : number | null ) {
247247 return ms === null ? null : Math . trunc ( ms * 1e3 ) / 1e3 ;
248248}
249+
250+ export function delayTitle ( delay : number | unknown ) : string | undefined {
251+ return delay && Number ( delay ) > 10e3 ? Stopper . toString ( delay ) : undefined ;
252+ }
Original file line number Diff line number Diff line change 11<script lang =" ts" >
22 import type { TOnlineTimerMetrics } from ' ../../api/wrappers.ts' ;
33 import { portPost } from ' ../../api/communication.ts' ;
4+ import { delayTitle } from ' ../../api/time.ts' ;
45 import Variable from ' ./Variable.svelte' ;
56 import Trace from ' ./Trace.svelte' ;
67 import TraceDomain from ' ./TraceDomain.svelte' ;
3334
3435 {#each metrics as metric (metric .handler )}
3536 <tr class =" t-zebra" >
36- <td class ="ta-r" >{metric .delay }</td >
37+ <td class ="ta-r" title ={ delayTitle ( metric . delay )} >{metric .delay }</td >
3738 <td class =" ta-c handler-cell" >
3839 <span class ="handler-value" >{metric .handler }</span >
3940 <!-- svelte-ignore a11y_click_events_have_key_events -->
Original file line number Diff line number Diff line change 1313 } from ' ../../api/settings.ts' ;
1414 import { compareByFieldOrder } from ' ../../api/comparator.ts' ;
1515 import { CALLED_ABORTED_TOOLTIP } from ' ../../api/const.ts' ;
16- import { Stopper } from ' ../../api/time.ts' ;
16+ import { delayTitle , Stopper } from ' ../../api/time.ts' ;
1717 import Variable from ' ./Variable.svelte' ;
1818 import Trace from ' ./Trace.svelte' ;
1919 import TraceDomain from ' ./TraceDomain.svelte' ;
171171 {/if }
172172 </td >
173173 <td class ="ta-c" >{metric .handler }</td >
174- <td class ="ta-r" >{metric .delay }</td >
174+ <td class ="ta-r" title ={ delayTitle ( metric . delay )} >{metric .delay }</td >
175175 <td >
176176 {#if metric .isOnline }
177177 <span title =" Scheduled" class =" icon -scheduled -small" ></span >
Original file line number Diff line number Diff line change 11<script lang =" ts" >
22 import type { TClearTimerHistory } from ' ../../api/wrappers.ts' ;
3+ import { delayTitle } from ' ../../api/time.ts' ;
34 import Trace from ' ./Trace.svelte' ;
45 import TraceDomain from ' ./TraceDomain.svelte' ;
56 import Variable from ' ./Variable.svelte' ;
1314 >
1415 <td class ="ta-c" ><Variable value ={metric .calls } /></td >
1516 <td class ="ta-c" >{metric .handler }</td >
16- <td class ="ta-r" >{metric .delay }</td >
17+ <td class ="ta-r" title ={ delayTitle ( metric . delay )} >{metric .delay }</td >
1718</tr >
Original file line number Diff line number Diff line change 1313 } from ' ../../api/settings.ts' ;
1414 import { compareByFieldOrder } from ' ../../api/comparator.ts' ;
1515 import { CALLED_ABORTED_TOOLTIP } from ' ../../api/const.ts' ;
16- import { Stopper } from ' ../../api/time.ts' ;
16+ import { delayTitle , Stopper } from ' ../../api/time.ts' ;
1717 import Variable from ' ./Variable.svelte' ;
1818 import Trace from ' ./Trace.svelte' ;
1919 import TraceDomain from ' ./TraceDomain.svelte' ;
173173 {/if }
174174 </td >
175175 <td class ="ta-c" >{metric .handler }</td >
176- <td class ="ta-r" >{metric .delay }</td >
176+ <td class ="ta-r" title ={ delayTitle ( metric . delay )} >{metric .delay }</td >
177177 <td >
178178 {#if metric .isOnline }
179179 <span title =" Scheduled" class =" icon -scheduled -small" ></span >
You can’t perform that action at this time.
0 commit comments