Skip to content
Snippets Groups Projects
Commit f4ae6f72 authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Performance improvements for System::getProcessTime (now ~30% faster)

- Increase test coverage and add performance check to test_GaudiTiming
- Remove unnecessary calls to getpid (saves ~10ns per query() call):
    - Remove getpid calls in case pid is -1 (self)
    - Remove ugly define that was hiding the getpid() calls in the
      source code
- Switch from getrusage() to times() (saves ~100ns per call)
- Only create ProcessHandle for Windows
- Add templated version of currentTime() so it can be inlined
- Allow System::getProcess to be inlined (move Windows code to
  constructor)
- Remove private caches for query() calls as those were not used

See merge request !228
parents 92567c2b 360bb377
No related branches found
No related tags found
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment