C++ Reference: class EnabledScopedInstructionCounter

This documentation is automatically generated.

Helper classes to count instructions during execution of a block of code and add print the results to logs.

Note: To enable instruction counting on machines running Debian, execute the following commands to modify the permissions. sudo echo "1" > /proc/sys/kernel/perf_event_paranoid sudo echo "0" > /proc/sys/kernel/kptr_restrict

Return type: explicit

Arguments: const std::string& name, TimeLimit* time_limit


Arguments: const EnabledScopedInstructionCounter&) = delete; EnabledScopedInstructionCounter& operator=( const EnabledScopedInstructionCounter&) = delete; ~EnabledScopedInstructionCounter(



Return type: double

Used only for testing.

Send feedback about...