Skip to content
Tcl Source Code Artifact [e7bd493fe2]
Login

Artifact [e7bd493fe2]

Artifact e7bd493fe24f7c4a2105fcc1707f0d8d4e225e8c7a056f77576ced15ab3a5950:

Wiki page [CPU Profile for Tcl_CreateInterp] by apnadkarni on 2025-09-13 16:00:55.
D 2025-09-13T16:00:55.084
L CPU\sProfile\sfor\sTcl_CreateInterp
N text/x-markdown
P d973e72490bc47d3a96cedbb46471c3c2961c2f6e635c135ff8c9173554da3e0
U apnadkarni
W 2956
Below is the execution profile in Visual Studio for interp creation. This snapshot is for 9.0.2, truncated because of some VS cut'n'paste issues. Go to [9.1 profile](https://core.tcl-lang.org/tcl/wiki?name=CPU+Profile+for+Tcl+9.1+interp+create&p)

|Function Name|Total CPU \[unit, %\]|Self CPU \[unit, %\]|Module|Category|
|-|-|-|-|-|
| + Tcl\_CreateInterp|7 \(100.00%\)|0 \(0.00%\)|tcl90||
|\| + InitFoundation|5 \(71.43%\)|0 \(0.00%\)|tcl90||
|\|\| + TclEvalEx|4 \(57.14%\)|0 \(0.00%\)|tcl90||
|\|\|\| + TclNRRunCallbacks|4 \(57.14%\)|0 \(0.00%\)|tcl90||
|\|\|\|\| + TclOODefineObjCmd|2 \(28.57%\)|0 \(0.00%\)|tcl90||
|\|\|\|\|\| + TclNREvalObjEx|1 \(14.29%\)|0 \(0.00%\)|tcl90||
|\|\|\|\|\|\| + TclCompileObj|1 \(14.29%\)|0 \(0.00%\)|tcl90||
|\|\|\|\|\|\|\| + TclSetByteCodeFromAny|1 \(14.29%\)|0 \(0.00%\)|tcl90||
|\|\|\|\|\|\|\|\| + TclCompileScript|1 \(14.29%\)|0 \(0.00%\)|tcl90||
|\|\|\|\|\|\|\|\|\| + CompileCommandTokens|1 \(14.29%\)|0 \(0.00%\)|tcl90||
|\|\|\|\|\|\|\|\|\|\| + TclCompileInvocation|1 \(14.29%\)|0 \(0.00%\)|tcl90||
|\|\|\|\|\|\|\|\|\|\|\| + CompileCmdLiteral|1 \(14.29%\)|0 \(0.00%\)|tcl90||
|\|\|\|\|\|\|\|\|\|\|\|\| + SetCmdNameObj|1 \(14.29%\)|0 \(0.00%\)|tcl90||
|\|\|\|\|\|\|\|\|\|\|\|\|\| + TclpAlloc|1 \(14.29%\)|0 \(0.00%\)|tcl90||
|\|\|\|\|\|\|\|\|\|\|\|\|\|\| - GetBlocks|1 \(14.29%\)|1 \(14.29%\)|tcl90||
|\|\|\|\|\| + TclNRRunCallbacks|1 \(14.29%\)|0 \(0.00%\)|tcl90||
|\|\|\|\|\|\| + PrivateNRObjectCmd|1 \(14.29%\)|0 \(0.00%\)|tcl90||
|\|\|\|\|\|\|\| + TclOOObjectCmdCore|1 \(14.29%\)|0 \(0.00%\)|tcl90||
|\|\|\|\|\|\|\|\| + TclOOGetCallContext|1 \(14.29%\)|0 \(0.00%\)|tcl90||
|\|\|\|\|\|\|\|\|\| - AddClassFiltersToCallContext|1 \(14.29%\)|1 \(14.29%\)|tcl90||
|\|\|\|\| + DecrRefsPostClassConstructor|1 \(14.29%\)|0 \(0.00%\)|tcl90||
|\|\|\|\|\| + TclNRRunCallbacks|1 \(14.29%\)|0 \(0.00%\)|tcl90||
|\|\|\|\|\|\| + TclOOObjDefObjCmd|1 \(14.29%\)|0 \(0.00%\)|tcl90||
|\|\|\|\|\|\|\| + MagicDefinitionInvoke|1 \(14.29%\)|0 \(0.00%\)|tcl90||
|\|\|\|\|\|\|\|\| - TclNREvalObjv|1 \(14.29%\)|1 \(14.29%\)|tcl90||
|\|\|\|\| + Tcl\_ProcObjCmd|1 \(14.29%\)|0 \(0.00%\)|tcl90||
|\|\|\|\|\| + TclCreateProc|1 \(14.29%\)|0 \(0.00%\)|tcl90||
|\|\|\|\|\|\| + Tcl\_GetCharLength|1 \(14.29%\)|0 \(0.00%\)|tcl90||
|\|\|\|\|\|\|\| + SetStringFromAny|1 \(14.29%\)|0 \(0.00%\)|tcl90||
|\|\|\|\|\|\|\|\| + TclpAlloc|1 \(14.29%\)|0 \(0.00%\)|tcl90||
|\|\|\|\|\|\|\|\|\| - GetBlocks|1 \(14.29%\)|1 \(14.29%\)|tcl90||
|\|\| + TclOODefineSlots|1 \(14.29%\)|0 \(0.00%\)|tcl90||
|\|\|\| + TclNewInstanceMethod|1 \(14.29%\)|0 \(0.00%\)|tcl90||
|\|\|\|\| - TclpAlloc|1 \(14.29%\)|1 \(14.29%\)|tcl90||
|\| + TclMakeEnsemble|2 \(28.57%\)|0 \(0.00%\)|tcl90||
|\|\| + SetStringFromAny|2 \(28.57%\)|0 \(0.00%\)|tcl90||
|\|\|\| + TclpAlloc|2 \(28.57%\)|0 \(0.00%\)|tcl90||
|\|\|\|\| + GetBlocks|2 \(28.57%\)|1 \(14.29%\)|tcl90||

Z 52a78925cf1ab93de566e7c5fcd81c38