Skip to content

Commit

Permalink
fix: add missing category fields to Lean.Firefox.FrameTable
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-wieser authored Dec 10, 2024
1 parent cd909b0 commit 816ceb5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Lean/Util/Profiler.lean
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ structure FuncTable where
deriving FromJson, ToJson

structure FrameTable where
category : Array Nat
subcategory : Array Nat
func : Array Nat
inlineDepth : Array Json := #[]
innerWindowID : Array Json := #[]
Expand Down Expand Up @@ -182,6 +184,8 @@ where
}
frameTable := {
func := thread.frameTable.func.push thread.funcMap.size
category := thread.frameTable.category.push category
subcategory := thread.frameTable.subcategory.push 0
length := thread.frameTable.length + 1
}
funcMap := thread.funcMap.insert strIdx thread.funcMap.size })
Expand Down Expand Up @@ -230,7 +234,7 @@ def Thread.new (name : String) : Thread := {
name
samples := { stack := #[], time := #[], weight := #[], threadCPUDelta := #[], length := 0 }
stackTable := { frame := #[], «prefix» := #[], category := #[], subcategory := #[], length := 0 }
frameTable := { func := #[], length := 0 }
frameTable := { func := #[], category := #[], subcategory := #[], length := 0 }
stringArray := #[]
funcTable := {
name := #[], resource := #[], fileName := #[], lineNumber := #[], columnNumber := #[],
Expand Down

0 comments on commit 816ceb5

Please sign in to comment.