Home RISC OS
News News
Befunge Befunge
Doom Doom
Inform Inform
Quake Quake
RISC OS RISC OS
   - BeagleBoard
   - Code
   - Games
   - Utilities
   - Miscellaneous

Misc Misc
Links Links
Contact Contact

PerfCount for RISC OS

V0.01 (20/6/2020): perfcount.zip (29,653 bytes). Source code included. Suitable for ARMv5+.

PerfCount is a module to provide easy acces to the performance counters that are present on most/all ARMv5+ CPUs.

Features

  • Reporting of which events are available, using a common ID scheme to provide some consistency between different CPUs
  • Support for multiple contexts, each measuring different events. Note: Currently, only one context can be active at a time.
  • Automatic & manual multipass/multiplexing system to allow you to gather data for as many events as you want, bypassing the limits on how many events the CPU can track at once
  • 64bit counter width to avoid overflow
  • Optional per-context Wimp task association to pause/resume monitoring depending on whether a specific task is active (e.g. for system-wide profiling)
  • Filtering by privileged & unprivileged CPU mode (if supported by the CPU)

History

  • 0.01 - 20/6/2020
    • First release

Legal

Copyright (c) 2020, Jeffrey Lee
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
    * Redistributions of source code must retain the above copyright
      notice, this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright
      notice, this list of conditions and the following disclaimer in the
      documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.


Page last modified 20/06/2020