class
ProfilerOverlay
Handles rendering of Profiler information as an overlay in a viewport.
Public
Constructors
ProfilerOverlay
Constructs a new overlay attached to the specified parent and displayed on the provided camera.
Methods
~ProfilerOverlay
SetTarget
Changes the camera to display the overlay on.
Hide
Hides the overlay.
Update
Updates overlay contents.
Should be called once per frame.
Private
Methods
TargetResized
Called whenever the viewport resizes in order to rearrange the GUI elements.
UpdateCpuSampleAreaSizes
Updates sizes of GUI areas used for displaying CPU sample data.
To be called after viewport change or resize.
UpdateGpuSampleAreaSizes
Updates sizes of GUI areas used for displaying GPU sample data.
To be called after viewport change or resize.
UpdateCpuSampleContents
Updates CPU GUI elements from the data in the provided profiler reports.
To be called whenever a new report is received.
UpdateGpuSampleContents
Updates GPU GUI elemnts from the data in the provided profiler report.
To be called whenever a new report is received.