public void AddTracedFunction(long numCalls, long treeTime, long funcTime, long perCall, DNode symbol) { traceFunctionsStore.AppendValues(numCalls, treeTime, funcTime, perCall, symbol.ToString(false, true), symbol); }
static void BuildModuleCode(StringBuilder sb, DNode bn, string indent = "") { if (bn == null) return; sb.Append(indent); sb.Append(bn.ToString(true, false)); if (bn is IBlockNode) { sb.Append(" {"); sb.AppendLine(); var deeperIndent = indent + "\t"; foreach (var sn in (bn as IBlockNode)) { BuildModuleCode(sb, sn as DNode, deeperIndent); } sb.Append(indent); sb.Append('}'); sb.AppendLine(); } else { sb.Append(";"); sb.AppendLine(); } }