mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Show more information with inspect.
This commit is contained in:
@@ -112,7 +112,8 @@ int main(int argc, const char* argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
nanoseconds_t length = transition - lasttransition;
|
nanoseconds_t length = transition - lasttransition;
|
||||||
std::cout << fmt::format("==== {: 10.3f} +{:.3f} = {:.1f} clocks",
|
std::cout << fmt::format("==== {:06x} {: 10.3f} +{:.3f} = {:.1f} clocks",
|
||||||
|
fr.tell(),
|
||||||
(double)transition / 1000.0,
|
(double)transition / 1000.0,
|
||||||
(double)length / 1000.0,
|
(double)length / 1000.0,
|
||||||
(double)length / clockPeriod);
|
(double)length / clockPeriod);
|
||||||
@@ -129,8 +130,16 @@ int main(int argc, const char* argv[])
|
|||||||
size_t cursor = seekFlag*1000000.0 / clockPeriod;
|
size_t cursor = seekFlag*1000000.0 / clockPeriod;
|
||||||
while (cursor < bitmap.size())
|
while (cursor < bitmap.size())
|
||||||
{
|
{
|
||||||
std::cout << (bitmap[cursor] ? 'X' : '-');
|
std::cout << fmt::format("{: 10.3f} : ", (double)cursor / clockPeriod);
|
||||||
cursor++;
|
for (unsigned i=0; i<60; i++)
|
||||||
|
{
|
||||||
|
if (cursor >= bitmap.size())
|
||||||
|
break;
|
||||||
|
std::cout << (bitmap[cursor] ? 'X' : '-');
|
||||||
|
cursor++;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::cout << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::cout << std::endl;
|
std::cout << std::endl;
|
||||||
|
|||||||
Reference in New Issue
Block a user