({ benchmarks })
| 6 | import useBenchmark from './useBenchmark'; |
| 7 | |
| 8 | function Benchmarks({ benchmarks }) { |
| 9 | return ( |
| 10 | <View> |
| 11 | <Text> |
| 12 | Average Time to Render:{'\n'} |
| 13 | {benchmarks.map((e) => `${e.name}: ${mean(e.values).toFixed(2)}ms\n`)} |
| 14 | </Text> |
| 15 | </View> |
| 16 | ); |
| 17 | } |
| 18 | |
| 19 | export default function Benchmark({ samples, html, ignoredTags }) { |
| 20 | const { onLayout, launch, ...state } = useBenchmark({ |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…