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;
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user