private string WriteDependentProcess(HashSet <NodeId> dependentNodes) { using (var output = new StringWriter(CultureInfo.InvariantCulture)) { output.WriteLine("Dependent executed processes"); var timeWidthLength = dependentNodes.Select(node => ToSeconds(m_analyzer.GetElapsed(node)).Length).Concat(new[] { 0 }).Max(); foreach (var nodeId in dependentNodes) { var pipId = nodeId.ToPipId(); if (m_analyzer.IsCompletedPip(pipId) && m_analyzer.IsPipExecuted(pipId)) { var elapsed = m_analyzer.GetElapsed(nodeId); output.WriteLine( "({0} sec) [{1}]", ToSeconds(elapsed).PadLeft(timeWidthLength), m_analyzer.GetPipDescription(pipId)); } } return(output.ToString()); } }