Show more information with inspect.

This commit is contained in:
David Given
2019-04-07 02:06:07 +02:00
parent 61df636215
commit 1576be8138

View File

@@ -112,7 +112,8 @@ int main(int argc, const char* argv[])
}
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)length / 1000.0,
(double)length / clockPeriod);
@@ -129,6 +130,11 @@ int main(int argc, const char* argv[])
size_t cursor = seekFlag*1000000.0 / clockPeriod;
while (cursor < bitmap.size())
{
std::cout << fmt::format("{: 10.3f} : ", (double)cursor / clockPeriod);
for (unsigned i=0; i<60; i++)
{
if (cursor >= bitmap.size())
break;
std::cout << (bitmap[cursor] ? 'X' : '-');
cursor++;
}
@@ -136,6 +142,9 @@ int main(int argc, const char* argv[])
std::cout << std::endl;
}
std::cout << std::endl;
}
if (dumpBytecodesFlag)
{
std::cout << "Raw FluxEngine bytecodes follow:" << std::endl;