Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 426
    • Issues 426
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #764
Closed
Open
Issue created Mar 12, 2018 by Mattijs Janssens@MattijsMaintainer

addProfiling has overhead even if not active

addProfiling calls clockTime even if not active. The profilingTrigger does two thing:

  • construct clockTime. This calls the low-level time function.
  • optionally return/construct a profilingInformation. This is protected from doing anything expensive unless it is active().

The addProfiling macro should really check for profiling::active().

Assignee
Assign to
Time tracking