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

introduce CxxAstVisitorProfiler for CxxAstScanner #1507

Closed
wants to merge 1 commit into from

Commits on Jun 27, 2018

  1. introduce CxxAstVisitorProfiler for CxxSquidSensor

    * introduce the hidden property sonar.cxx.squidprofiler.out=<path>
    * if property set, decorate each AstVisitor (all squid checks, CPD, highlighting etc), so that it tracks the elapsed time per source file
    * dump this duration as well as other invocation details to <path> in JSON format
    * currently only duration is logged
    * for parallel execution we can log start/stop time also, in order to check the CPU utilization level (see SonarOpenCommunity#1493)
    * output: semi-JSON format for python analysis (e.g. in http://jupyter.org/)
      `{ "visitor": "%s", "source_file": "%s", "duration_ms": "%d" }`
    ivangalkin committed Jun 27, 2018
    Configuration menu
    Copy the full SHA
    7d800dd View commit details
    Browse the repository at this point in the history