diff options
author | partouf <partouf@gmail.com> | 2023-04-22 12:41:41 +0200 |
---|---|---|
committer | partouf <partouf@gmail.com> | 2023-04-22 12:41:41 +0200 |
commit | 67f07dd672593eec3f88c5dfdedbb6a518d7d700 (patch) | |
tree | 9e0143d2a5719f5eed8b497567ec308b9c88e3a3 | |
parent | 9abc9bd5e03ceb39117a8faa0a07276302c7d090 (diff) | |
download | compiler-explorer-gh-7156.tar.gz compiler-explorer-gh-7156.zip |
add timetrace artifact typegh-7156
-rw-r--r-- | lib/compilers/clang.ts | 2 | ||||
-rw-r--r-- | static/panes/compiler.ts | 2 | ||||
-rw-r--r-- | types/tool.interfaces.ts | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/lib/compilers/clang.ts b/lib/compilers/clang.ts index 5dc7c8afc..2bab5df05 100644 --- a/lib/compilers/clang.ts +++ b/lib/compilers/clang.ts @@ -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":['); diff --git a/static/panes/compiler.ts b/static/panes/compiler.ts index 2489ef294..3c5fdf54a 100644 --- a/static/panes/compiler.ts +++ b/static/panes/compiler.ts @@ -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); } } diff --git a/types/tool.interfaces.ts b/types/tool.interfaces.ts index 08ace37b6..83f8e12a9 100644 --- a/types/tool.interfaces.ts +++ b/types/tool.interfaces.ts @@ -56,6 +56,7 @@ export enum ArtifactType { bbcdiskimage = 'bbcdiskimage', zxtape = 'zxtape', smsrom = 'smsrom', + timetrace = 'timetracejson', } export type Artifact = { |