HomeClusterLabs Projects

Feature: tools: add crm_simulate option to repeat profiling tests

Description

Feature: tools: add crm_simulate option to repeat profiling tests

crm_simulate's --profile option will now use clock() to determine and print the
CPU time used by each test in the profile directory.

A new --repeat <N> option causes each test to be repeated <N> times, for better
timing comparisons.

Example:
crm_simulate --profile cts/scheduler --repeat 1000

  • Testing cts/scheduler/year-2038.xml ... 32.21 secs
  • Testing cts/scheduler/whitebox-unexpectedly-running.xml ... 0.89 secs
  • Testing cts/scheduler/whitebox-stop.xml ... 3.08 secs
  • Testing cts/scheduler/whitebox-start.xml ... 3.16 secs

(etc.)

Details

Provenance
kgaillotAuthored on Oct 4 2019, 6:36 PM
Parents
rP5cf34cb9fc0b: Refactor: tools: simplify action name creation in crm_simulate
Branches
Unknown
Tags
Unknown

Event Timeline