Searched refs:timeToCode (Results 1 – 7 of 7) sorted by relevance
/external/perfetto/ui/src/common/ |
D | time_unittest.ts | 15 import {TimeSpan, timeToCode} from './time'; 18 expect(timeToCode(3)).toEqual('3s'); 19 expect(timeToCode(60)).toEqual('1m'); 20 expect(timeToCode(63)).toEqual('1m 3s'); 21 expect(timeToCode(63.2)).toEqual('1m 3s 200ms'); 22 expect(timeToCode(63.2221)).toEqual('1m 3s 222ms 100us'); 23 expect(timeToCode(63.2221111)).toEqual('1m 3s 222ms 111us 100ns'); 24 expect(timeToCode(0.2221111)).toEqual('222ms 111us 100ns'); 25 expect(timeToCode(0.000001)).toEqual('1us'); 26 expect(timeToCode(0.000003)).toEqual('3us'); [all …]
|
D | time.ts | 57 export function timeToCode(sec: number) { function
|
/external/perfetto/ui/src/frontend/ |
D | counter_panel.ts | 17 import {fromNs, timeToCode} from '../common/time'; 39 m('td', `${timeToCode(counterInfo.startTime)}`)), 48 m('td', `${timeToCode(fromNs(counterInfo.duration))}`)),
|
D | slice_panel.ts | 20 import {timeToCode, toNs} from '../common/time'; 64 m('td', `${timeToCode(sliceInfo.ts)}`)), 67 m('td', `${timeToCode(sliceInfo.dur)}`)), 130 timeToCode( 144 timeToCode(
|
D | thread_state_panel.ts | 18 import {timeToCode, toNs} from '../common/time'; 41 m('td', `${timeToCode(threadState.ts)}`)), 46 `${timeToCode(threadState.dur)} `,
|
D | chrome_slice_panel.ts | 19 import {timeToCode, toNs} from '../common/time'; 137 builder.add('Start time', timeToCode(sliceInfo.ts)); 141 timeToCode(sliceInfo.dur));
|
D | heap_profile_panel.ts | 25 import {timeToCode} from '../common/time'; 120 `Snapshot time: ${timeToCode(heapDumpInfo.ts)}`),
|