Exemplo n.º 1
0
 internal FrameSetupData(int minFrame, int maxFrame, int filterDepth, List <string> filterThreads)
 {
     progressBar             = new ProgressBarDisplay();
     firstFrame              = minFrame;
     lastFrame               = maxFrame;
     analyzer                = new ProfileAnalyzer();
     profilerWindowInterface = new ProfilerWindowInterface(progressBar);
     profileData             = profilerWindowInterface.PullFromProfiler(minFrame, maxFrame);
     depthFilter             = filterDepth;
     threadFilters           = filterThreads;
 }
Exemplo n.º 2
0
    private void ShowFoundItemInProfiler(HierarchyFrameDataView frameData, int matchingItemId, int frameIndex)
    {
        var goInstanceId = frameData.GetItemInstanceID(matchingItemId);
        var foundObject  = EditorUtility.InstanceIDToObject(goInstanceId);

        //Selection.activeObject = foundObject;
        EditorGUIUtility.PingObject(foundObject);

        var profilerWindowInterface = new ProfilerWindowInterface();

        profilerWindowInterface.OpenProfilerOrUseExisting();
        profilerWindowInterface.JumpToFrame(frameIndex + 1);

        var markerName = frameData.GetItemName(matchingItemId);

        profilerWindowInterface.SetProfilerWindowMarkerName(markerName, new List <string>()
        {
            LookInThread
        });

        ProfilerDriver.enabled     = false;
        EditorApplication.isPaused = true;
    }
 private void InitializePrifilerWindowInterface()
 {
     _profilerWindowInterface = new ProfilerWindowInterface();
     _profilerWindowInterface.OpenProfilerOrUseExisting();
 }