-
-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I launch Brofiler at program startup? #23
Comments
I second this. RenderDoc allows you to launch the target .exe directly. |
Hi chuckleplant, I did some test with the Brofiler Test example source.
As further suggestion, only call this, when passing in some command line argument to your executable. Kind Regards, |
I guess that could work. Thanks! |
Usually I have a command line parameter for startup profiling. bool Engine::Update()
{
if (startupProfiling)
{
Profiler::Core::Get().Activate(true);
startupProfiling = false;
}
BROFILER_FRAME("MainThread")
...
} Then you can connect with Brofiler later and it will cath up with early frames. |
Can't I call |
You need to do follow these three steps:
static ::Brofiler::ThreadScope mainThreadScope("MainThread");
if (startupProfiling)
{
Profiler::Core::Get().Activate(true);
Profiler::NextFrame(); //To start a new "loading" frame
}
Profiler::NextFrame(); //Update Brofiler and start the next frame
BROFILER_EVENT("Frame"); //Root event for the frame |
Profiler::Core is not accesible in the latest stable release. Is there a way to do this on v1.1.2? |
The reason why this is important is because time to first rendered frame is an important metric! Profiling start up code is a necessary part of this process and should be simple to do. |
I agree with previous comment would be awesome if this could be supported. |
Still a problem in 1.2.4 - is there some other way we should do this? |
I am planning to provide a special API for this in the next release. |
- Embedding miniz library for capture compression - Adding support for general application profiling Optick now can operate without GUI and save captures directly to the provided path.
Support for game startup performance analysis has been added in v1.2.5. |
Currently I start Brofiler while my program is running, so I can't catch the initial frames of my application. Is there a way to attach them on startup?
The text was updated successfully, but these errors were encountered: