Esempio n. 1
0
        public ModuleStats AnalyseAllScripts(string path)
        {
//			if (path == null) throw new ArgumentNullException("path");

            List <ScriptTriggerTuple> scripts = scriptHelper.GetAllScriptsFromModule(Attachment.Attached);

            ModuleStats ms = new ModuleStats();

            ms.AttachedScripts += scripts.Count;
            ms.Name             = session.GetModule().Name;

//			System.Text.StringBuilder sb = new System.Text.StringBuilder();

            foreach (ScriptTriggerTuple s in scripts)
            {
                window.OpenFlipScript(s);

//				sb.AppendLine(GetPaddedName(s.Script.Name));
//				sb.AppendLine();

                ScriptStats stats = window.GetStatistics();

//				sb.Append(stats.ToString());
//				sb.AppendLine(dashes);
//				sb.AppendLine();
//				sb.AppendLine();

                ms.Add(stats);

                window.CloseScript();
            }

//			string header = String.Format("{0}{1}{2}{1}{0}{1}{1}{3}{1}",dashes,Environment.NewLine,GetPaddedName("Module '" + ms.Name + "'"),ms);
//
//			sb.Insert(0,header);
//
//			using (StreamWriter writer = File.CreateText(path)) {
//				writer.Write(sb.ToString());
//			}

            return(ms);
        }
 public void CalculStatistiques()
 {
     ModuleStats.CalculStatistiques();
 }
 public void RecupererInformation()
 {
     ModuleStats.RecupererInformation();
 }