Hello,
I am working on a project that uses profiler output to characterize CPU usage.
In profiler, the CPU usage is categorized under 9 different subcategories.
The image below shows these categories
As much as I understand, profıler collects data based on marker points, and it associates execution time with those markers.
I am wondering that are there any documents that describe which marker names are associated with CPU usage subcategories?
I would like to know how much CPU time my application spent during rendering, physics, scripting, and other categories.
For example,
I collected profiler data and then I managed to get the marker table by using Profile Analyzer. You can find the marker table in attachments and named as marker.zip. I had to zip the file because of xlsx file format.
I managed to calculate CPU time during physics-related operation by filtering the following markers;
- Physics.Simulate
- Physics.JointBreaks
- Physics.UpdateCloth
- Physics.Interpolation
- Physics.TriggerEnterExits
- Physics.TriggerStays
- Physics.Contacts
- Physics.FetchResults
- Physics.UpdateBodies
- Physics.ProcessReports
- Physics.Processing
- Physics.ProcessingCloth
Based on this page, section: Physics markers.
On the same page, it says that Rendering and VSync markers are given as;
-
WaitForTargetFPS
-
Gfx.ProcessCommands
-
Gfx.WaitForCommands
-
Gfx.PresentFrame
-
Gfx.WaitForPresentOnGfxThread
-
Gfx.WaitForRenderThread
However, I am not sure which markers indicate rendering and which ones indicate vsync. Also, I did not have the all markers listed above in my log file.
In the table below, you can check markers exist in my log file. Could you please explain why I cannot observe some markers on my log files?
I reviewed this page and this page. However, I could not get a precise answer.
My unity version is Version 2019.4.15f1 (fbf367ac14e9) Personal.
If my post is in the wrong forum section, I would be very grateful if you transfer it to the right place.
Thank you.
Have a nice day.
6734524–775537–marker.zip (64.6 KB)