diff --git a/compiler/ast2nif.nim b/compiler/ast2nif.nim index 4a65f7d5da..c517aef48a 100644 --- a/compiler/ast2nif.nim +++ b/compiler/ast2nif.nim @@ -4140,10 +4140,14 @@ proc processTopLevel(c: var DecodeContext; cur: var Cursor; flags: set[LoadFlag] # being compiled fresh (they would collide with the fresh originals). if c.mainModuleSuffix.len == 0 or parseSymName(symAsStr).module != c.mainModuleSuffix: + icProfStart(tResolveSym) let sym = resolveSym(c, symAsStr, false) + icProfStop(tResolveSym) if sym != nil: strTableAdd(interf, sym) + icProfStart(tEnumFields) addReexportedEnumFields(c, sym, interf) + icProfStop(tEnumFields) skip cur else: raiseAssert "expected Symbol or ParRi but got " & $cur.kind & diff --git a/compiler/icprof.nim b/compiler/icprof.nim index 32fefcc0b3..8f95594394 100644 --- a/compiler/icprof.nim +++ b/compiler/icprof.nim @@ -36,7 +36,7 @@ when defined(icBNodeProf): TimeSlot* = enum tLoadClosure, tModuleId, tBifLoad, tPosIndex, tTopLevel, tInterfTables, tTransform, tHandOff, tGenBody, tAnalyses, - tSym, tTyp, tInfo, tOrigin, tExportBranch + tSym, tTyp, tInfo, tOrigin, tExportBranch, tResolveSym, tEnumFields var profCounts: array[ProfSlot, int] var profNanos: array[TimeSlot, int64]