Skip to content

Autodesk: Add new options to enable or disable the trace and the performance log in Hd #3645

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

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

Conversation

erikaharrison-adsk
Copy link
Contributor

Description of Change(s)

Add options to enable or disable tracing. And add another option to enable or disable the performance log in hd.
Tracing and performance log is valuable for profiling. But in a formal release, they will impact the performance. So we should add the ability to disable the two features.

By default, both features are still enabled.

Link to proposal (if applicable)

  • N/A

Fixes Issue(s)

  • N/A

Checklist

@jesschimein
Copy link
Collaborator

Filed as internal issue #USD-11029

(This is an automated message. See here for more information.)

@spiffmon
Copy link
Member

We are very sympathetic to the desires for this change! We are fine with changing TRACE_DISABLE into TRACE_ENABLE for consistency. But (and this applies to the newly introduced directive for Hd, also) we are not OK with requiring the build system to define the directive in order for the feature to be activated.

So, can you change teh guards from #if defined(TRACE_ENABLE) to #if TRACE_ENABLE and add a block at the top like

#if !defined(TRACE_ENABLE)
    #define TRACE_ENABLE 1
#endif

Thank you!

@PierreWang
Copy link
Contributor

We are very sympathetic to the desires for this change! We are fine with changing TRACE_DISABLE into TRACE_ENABLE for consistency. But (and this applies to the newly introduced directive for Hd, also) we are not OK with requiring the build system to define the directive in order for the feature to be activated.

So, can you change teh guards from #if defined(TRACE_ENABLE) to #if TRACE_ENABLE and add a block at the top like

#if !defined(TRACE_ENABLE)
    #define TRACE_ENABLE 1
#endif

Thank you!

Hi @spiffmon , thank you for your comments. For the HD_PERF_ENABLE, we also need to add the similar block, right? And I think we also need to remove the changes in build system?

@spiffmon
Copy link
Member

I believe so, yes.

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.

4 participants