Skip to content
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

CPU profiling trace updates #48

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jdaignault
Copy link
Collaborator

  • Increased profiling trace coverage, notably with regards to function nodes
  • Added a MDFASTBINDING_CONDENSED_PROFILING directive to allow for a more 'compact' view of the trace events in the timeline (at the expense of some CPU cycles)

Note that MDFASTBINDING_CONDENSED_PROFILING is disabled by default to maintain existing behavior, but it has helped reduce a lot of clutter and depth in the timeline graph. I'll leave it up to you on whether it's worth enabling by default (at the expense of the trace's absolute performance cost).

- Increased profiling trace coverage, notably with regards to function nodes
- Added a MDFASTBINDING_CONDENSED_PROFILING directive to allow for a more 'compact' view of the trace events in the timeline (at the expense of some CPU cycles)

void UMDFastBindingDestinationBase::InitializeDestination(UObject* SourceObject)
{
#if defined(MDFASTBINDING_CONDENSED_PROFILING) && MDFASTBINDING_CONDENSED_PROFILING
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of checking for MDFASTBINDING_CONDENSED_PROFILING all over, could you change all the instances to always use MD_TRACE_CPUPROFILER_EVENT_SCOPE_FUNCTION_TEXT and then #define it based on MDFASTBINDING_CONDENSED_PROFILING in MDFastBindingTraceHelpers.h?

I think it ends up being cleaner that way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants