mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
Removed debug messages from performance counter code.
This commit is contained in:
@@ -82,6 +82,5 @@ Genode::uint64_t Genode::Trace::Performance_counter::read(unsigned counter)
|
|||||||
if ((rc = Nova::hpc_read(sel, type, value)) != Nova::NOVA_OK)
|
if ((rc = Nova::hpc_read(sel, type, value)) != Nova::NOVA_OK)
|
||||||
throw Genode::Trace::Pfc_access_error(rc);
|
throw Genode::Trace::Pfc_access_error(rc);
|
||||||
|
|
||||||
Genode::log("Performance_counter::read = ", value);
|
|
||||||
return static_cast<Genode::uint64_t>(value);
|
return static_cast<Genode::uint64_t>(value);
|
||||||
}
|
}
|
||||||
@@ -56,7 +56,6 @@ public:
|
|||||||
try {
|
try {
|
||||||
Genode::Trace::Performance_counter::start(_counter);
|
Genode::Trace::Performance_counter::start(_counter);
|
||||||
_prev.value = static_cast<std::uint64_t>(Genode::Trace::Performance_counter::read(_counter));
|
_prev.value = static_cast<std::uint64_t>(Genode::Trace::Performance_counter::read(_counter));
|
||||||
std::cout << "PMC " << _name << " prev.value=" << _prev.value << std::endl;
|
|
||||||
}
|
}
|
||||||
catch (Genode::Trace::Pfc_access_error &e)
|
catch (Genode::Trace::Pfc_access_error &e)
|
||||||
{
|
{
|
||||||
@@ -71,7 +70,6 @@ public:
|
|||||||
_data.value = Genode::Trace::Performance_counter::read(_counter);
|
_data.value = Genode::Trace::Performance_counter::read(_counter);
|
||||||
Genode::Trace::Performance_counter::stop(_counter);
|
Genode::Trace::Performance_counter::stop(_counter);
|
||||||
Genode::Trace::Performance_counter::reset(_counter);
|
Genode::Trace::Performance_counter::reset(_counter);
|
||||||
std::cout << "PMC " << _name << " data.value=" << _data.value << std::endl;
|
|
||||||
}
|
}
|
||||||
catch (Genode::Trace::Pfc_access_error &e)
|
catch (Genode::Trace::Pfc_access_error &e)
|
||||||
{
|
{
|
||||||
@@ -84,7 +82,6 @@ public:
|
|||||||
|
|
||||||
[[nodiscard]] double read() const
|
[[nodiscard]] double read() const
|
||||||
{
|
{
|
||||||
std::cout << "PMC " << _name << " value: " << (_data.value - _prev.value) << std::endl;
|
|
||||||
return static_cast<double>(_data.value - _prev.value);
|
return static_cast<double>(_data.value - _prev.value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user