Skip to content

Commit

Permalink
disable tracer cache optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
doehyunbaek committed Dec 18, 2023
1 parent 617c6cb commit 091b01d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/tracer.cts
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ export class Trace {
}

push(event: string) {
if (event.startsWith('IC') || event.startsWith('IR')) {
const cashIndex = this.cache.findIndex(v => v === event)
if (cashIndex !== -1) {
this.trace.push(cashIndex.toString())
return
} else {
this.cache.push(event)
}
}
// if (event.startsWith('IC') || event.startsWith('IR')) {
// const cashIndex = this.cache.findIndex(v => v === event)
// if (cashIndex !== -1) {
// this.trace.push(cashIndex.toString())
// return
// } else {
// this.cache.push(event)
// }
// }
this.trace.push(event)
// if (this.trace.length > 15000 && this.flag === true) {
// fs.writeFileSync('/Users/jakob/Desktop/wasm-r3/ffmpeg/bin_0/replay-trace.r3', this.toString())
Expand Down

0 comments on commit 091b01d

Please sign in to comment.