Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BADGERS-307 feat(debugger): Record changes to metric values over time (…
…#324) * Linting on ReadyHelper * What doesn't this change * Remove Terser - Unused * it aint much * but it's darn honest work * wip: add media element types * Combine Message and Metric Types * [WIP] Classify Chronicle * Fix Chronicle Unit Tests * Fix all tests * chore: change chronicle to TypeScript * wip: type bonanza * wip: metric interface * Type that extracts Metric Value based on key * Fix Types for Metric Get * wip: use new api * WIP Message Push Functions * Remove API Call and Event from Trace * Export EntryForIdentifier, instead of Message/MetricForKey/Level * wip: elmo burn emoji * getLatestMetric * refine types * chore: disable prefer-at * feat: chronicle is amazing now * DebugPresenter => DebugFormatter * Minor linting changes * feat: add event trace * chore: make debugtool TypeScript * chore: make debugformatter TypeScript * wip: im bad at splitting commits * feat: statechange trace * feat: use new chronicle * fix: all the debugger tests * chore: check for unused locals * Remove redundant test * refactor: restructure tests * test(debugger): chronicle records an error trace * feat(debugger): chronicle records an error trace * test(debugger): expect error records to be traces * test(debugger): debugtool tests expect error to be a trace * feat(debugger): debugview renders error traces * feat(debugger): show a subset of events to the view * refactor(debugger): call trace to record a trace in the chronicle * refactor(debugger): initialise a new view controller on teardown * feat: track session start and end times * test: same-value metrics don't update over time * Fix various compiler errors * Add buffered-audio metric * Fix Debug View Test * Don't record duplicated values * chore: rename pushMetric to appendMetric * rework internal data structure * test(debugger): fix remaining tests * refactor: clean up * feat: don't store history for buffer length and seekable range * feat: warn if metrics get many * chore: make more metrics static * chore: as cast * feat: log gap jumps to the debugger * chore: give types to mediakinds * fix: type error * chore: declaration files * chore: mark dashjs external * chore: build dist on install * fix: avoid Object values * fix: bitrate * Add the skeleton Compressor * Export Chronicle and Debug Tool on Main API * Export Default in Compressor * Don't compile tests with Typescript for Prod * Add Declaration Compile * Better Declaration Build * Typescriptify random stuff, start adding GZip * Actually commit new files * Low Hanging Fruit Typescriptify * Save TransferFormats before committing * Todo Tests * Remove FFlate * feat: create union type * wip: dist output? * fix: use if instead of booleans * fix: add back -f flag * Render to debugview on interval rather than on every update * wip: try rollup-plugin-dts * clean up * chore: remove commented out lines * Update Package Lock * `as const` * Don't export Chronicle on BSP API * Don't re-export `compress` and `decompess` * Change DebugView back into a singleton * Make frames-dropped a static metric * Remove redundant code for initially setting debug-view render interval * Typescriptify Resizer * Make Compressor Committable * Named Exports in ./model, and Typescriptify ReadyHelper * Linting * Call showView() in DebugViewController tests to start render interval * Zod Skeleton * More work on Zod Schema - Message * feat: log buffered ranges on waiting/stall event * TraceKinds and MetricKeys Zod * \'Compression\' is `JSON.stringify` for now * Merge "Validation" Branch into "Compression" Branch (#321) * Typescriptify most of Utils * Remove Validator * Export Types from Chronicle on TS Interface * Export Chronicle Enums etc. * feat: display all entries in the view when log-level is debug * fix: generate working types * fix: dev build * fix: replace all hyphens * Change tail to 100 * Kebab Case * No JSON Stringify in Compressor * Remove Compressor * chore: sort traces first * refactor: use kind as identifier for all categories * fix: report correct media type with quality change * chore: undo whitespace changes * chore: undo whitespace changes * feat: record buffers on playing event * style: rename wrung to inverted * chore: make chronicle warn -> error * feat: make init data a type * docs: clean up type * docs: update Chronicle docs --------- Co-authored-by: James Bungay <[email protected]> Co-authored-by: ShiningTrapez <[email protected]>
- Loading branch information