Skip to content

Commit

Permalink
Add some exceptions to a hack in Perfetto (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
ALevansSamsung authored Dec 7, 2023
1 parent be8462b commit 3dd34fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/src/controller/record_controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ export function toPbtxt(configBuffer: Uint8Array): string {
value.startsWith('STAT_') || value.startsWith('LID_') ||
value.startsWith('BATTERY_COUNTER_') || value === 'DISCARD' ||
value === 'RING_BUFFER' || value === 'BACKGROUND' ||
value === 'USER_INITIATED';
value === 'USER_INITIATED' ||
value === 'START_TRACING';
}
// Since javascript doesn't have 64 bit numbers when converting protos to
// json the proto library encodes them as strings. This is lossy since
Expand All @@ -144,6 +145,7 @@ export function toPbtxt(configBuffer: Uint8Array): string {
'samplingIntervalBytes',
'shmemSizeBytes',
'timestampUnitMultiplier',
'counterPeriodNs',
].includes(key);
}
function* message(msg: {}, indent: number): IterableIterator<string> {
Expand Down

0 comments on commit 3dd34fb

Please sign in to comment.