mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-02 04:09:47 -06:00
add timetrace artifact type
This commit is contained in:
@@ -83,7 +83,7 @@ export class ClangCompiler extends BaseCompiler {
|
||||
this.addArtifactToResult(
|
||||
result,
|
||||
jsonFilepath,
|
||||
ArtifactType.download,
|
||||
ArtifactType.timetrace,
|
||||
'Trace events JSON',
|
||||
(buffer: Buffer) => {
|
||||
return buffer.toString('utf-8').startsWith('{"traceEvents":[');
|
||||
|
||||
@@ -1740,7 +1740,7 @@ export class Compiler extends MonacoPane<monaco.editor.IStandaloneCodeEditor, Co
|
||||
this.emulateSpeccyTape(artifact.content);
|
||||
} else if (artifact.type === ArtifactType.smsrom) {
|
||||
this.emulateMiracleSMS(artifact.content);
|
||||
} else if (artifact.type === ArtifactType.download) {
|
||||
} else if (artifact.type === ArtifactType.timetrace) {
|
||||
this.offerViewInPerfetto(artifact);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,6 +56,7 @@ export enum ArtifactType {
|
||||
bbcdiskimage = 'bbcdiskimage',
|
||||
zxtape = 'zxtape',
|
||||
smsrom = 'smsrom',
|
||||
timetrace = 'timetracejson',
|
||||
}
|
||||
|
||||
export type Artifact = {
|
||||
|
||||
Reference in New Issue
Block a user