示例#1
0
        public string GetPBRuntime(List <string> args)
        {
            if (args.Count < 1)
            {
                return("Not Enough args!");
            }

            StringBuilder    sb       = new StringBuilder();
            List <PBTracker> trackers = new List <PBTracker>();

            PBData.GetTrackerNameContains(args[0], trackers);

            sb.AppendLine($"Results for {args[0]}:");

            foreach (var tracker in trackers)
            {
                sb.Append("PB: ").Append(tracker.PBID).Append(" Average: ").Append(tracker.AverageMS.ToString()).AppendLine(" ms.");
            }

            return(sb.ToString());
        }
 public PBProfiling()
 {
     ProfilerPatches.ApplyPatch();
     PBData.Init();
     RegisterCommands();
 }