Example #1
0
        public FrameData(HoloToolkit.Sharing.ProfileFrame xFrame)
        {
            this.profileFrame = xFrame;

            for(int i = 0; i < this.profileFrame.GetThreadCount(); ++i)
            {
                this.threads.Add(new ThreadData(this.profileFrame.GetThread(i)));
            }
        }
Example #2
0
        public FrameData(HoloToolkit.Sharing.ProfileFrame xFrame)
        {
            this.profileFrame = xFrame;

            for (int i = 0; i < this.profileFrame.GetThreadCount(); ++i)
            {
                this.threads.Add(new ThreadData(this.profileFrame.GetThread(i)));
            }
        }
Example #3
0
        private void OnReceiveProfileFrame(HoloToolkit.Sharing.ProfileFrame newFrame)
        {
            if (App.ProfilerApp.Recording)
            {
                this.frames.Add(new FrameData(newFrame));

                while (this.frames.Count > MaxFrames)
                {
                    this.frames.RemoveAt(0);
                }

                for (int i = 0; i < newFrame.GetLogMessageCount(); ++i)
                {
                    this.logs.Add(new LogData(newFrame.GetLogMessage(i)));
                }
            }
        }