Inheritance
System.Object
FrameTimeGraph
public class FrameTimeGraph
Constructors
Declaration
public FrameTimeGraph(Draw2D draw2D, Units units, Color background, Color backgroundSelected, Color barColor, Color barSelected, Color barMarker, Color barMarkerSelected, Color barThreads, Color barThreadsSelected, Color colorGridlines)
Parameters
Type |
Name |
Description |
Draw2D |
draw2D |
|
Units |
units |
|
Color |
background |
|
Color |
backgroundSelected |
|
Color |
barColor |
|
Color |
barSelected |
|
Color |
barMarker |
|
Color |
barMarkerSelected |
|
Color |
barThreads |
|
Color |
barThreadsSelected |
|
Color |
colorGridlines |
|
Methods
Declaration
public void ClearDragSelection()
Declaration
public void Draw(Rect rect, ProfileAnalysis analysis, List<int> selectedFrameOffsets, float yMax, int displayOffset, string selectedMarkerName, int maxFrames = 0, ProfileAnalysis fullAnalysis = null)
Parameters
Type |
Name |
Description |
Rect |
rect |
|
ProfileAnalysis |
analysis |
|
System.Collections.Generic.List<System.Int32> |
selectedFrameOffsets |
|
System.Single |
yMax |
|
System.Int32 |
displayOffset |
|
System.String |
selectedMarkerName |
|
System.Int32 |
maxFrames |
|
ProfileAnalysis |
fullAnalysis |
|
Declaration
public float GetDataRange()
Returns
Type |
Description |
System.Single |
|
Declaration
public FrameTimeGraph GetPairedWith()
Returns
Declaration
public void GetSelectedRange(List<int> frameOffsets, out int firstDataOffset, out int lastDataOffset, out int firstFrameOffset, out int lastFrameOffset)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<System.Int32> |
frameOffsets |
|
System.Int32 |
firstDataOffset |
|
System.Int32 |
lastDataOffset |
|
System.Int32 |
firstFrameOffset |
|
System.Int32 |
lastFrameOffset |
|
Declaration
public float GetYAxisRange(float yMax)
Parameters
Type |
Name |
Description |
System.Single |
yMax |
|
Returns
Type |
Description |
System.Single |
|
Declaration
Returns
Type |
Description |
System.Boolean |
|
Declaration
public bool HasDragRegion()
Returns
Type |
Description |
System.Boolean |
|
Declaration
Returns
Type |
Description |
System.Boolean |
|
Declaration
public void PairWith(FrameTimeGraph otherFrameTimeGraph)
Parameters
Declaration
public FrameTimeGraph.State ProcessInput(Rect rect, List<int> selectedFrameOffsets, int maxFrames = 0)
Parameters
Type |
Name |
Description |
Rect |
rect |
|
System.Collections.Generic.List<System.Int32> |
selectedFrameOffsets |
|
System.Int32 |
maxFrames |
|
Returns
Declaration
Declaration
public void SelectGrow(int step)
Parameters
Type |
Name |
Description |
System.Int32 |
step |
|
Declaration
public void SelectGrowLeft(int step)
Parameters
Type |
Name |
Description |
System.Int32 |
step |
|
Declaration
public void SelectGrowRight(int step)
Parameters
Type |
Name |
Description |
System.Int32 |
step |
|
Declaration
public void SelectNext(int step)
Parameters
Type |
Name |
Description |
System.Int32 |
step |
|
Declaration
public void SelectPrevious(int step)
Parameters
Type |
Name |
Description |
System.Int32 |
step |
|
Declaration
public void SelectShrink(int step)
Parameters
Type |
Name |
Description |
System.Int32 |
step |
|
Declaration
public void SelectShrinkLeft(int step)
Parameters
Type |
Name |
Description |
System.Int32 |
step |
|
Declaration
public void SelectShrinkRight(int step)
Parameters
Type |
Name |
Description |
System.Int32 |
step |
|
Declaration
public void SetData(List<FrameTimeGraph.Data> values)
Parameters
Declaration
public void SetDragSelection(int startOffset, int endOffset)
Parameters
Type |
Name |
Description |
System.Int32 |
startOffset |
|
System.Int32 |
endOffset |
|
Declaration
public void SetEnabled(bool enabled)
Parameters
Type |
Name |
Description |
System.Boolean |
enabled |
|
Declaration
public static void SetGlobalSettings(FrameTimeGraphGlobalSettings globalSettings)
Parameters
Declaration
public void SetRangeCallback(FrameTimeGraph.SetRange setRange)
Parameters
Declaration
public void SetUnits(Units units)
Parameters
Type |
Name |
Description |
Units |
units |
|
Declaration
public void ToggleShowFrameLines()
ToggleShowFrameLinesText()
Declaration
public void ToggleShowFrameLinesText()
Declaration
public void ToggleShowOrderedByFrameDuration()
Declaration
public void ToggleShowSelectedMarker()
Declaration
public void ToggleShowThreads()
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.