Mosa.Compiler.Framework.Counters.Export C# (CSharp) Method

Export() public method

public Export ( ) : IList
return IList
        public IList<string> Export()
        {
            var counts = new List<string>();

            if (counters != null)
            {
                foreach (var item in counters)
                {
                    counts.Add(item.Key + ": " + item.Value.ToString());
                }
            }

            return counts;
        }

Usage Example

コード例 #1
0
 protected void ExportCounters()
 {
     foreach (var counter in Counters.Export())
     {
         NewCompilerTraceEvent(CompilerEvent.Counter, counter);
     }
 }