mirror of
https://github.com/c3d/DB48X-on-DM42.git
synced 2024-09-28 03:20:53 +02:00
simulator: Add tweak to show RPL object details
Showing the address, type and size of RPL objects is not often useful. It is generally sufficient to just show the object rendering. Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
This commit is contained in:
parent
c736e6a388
commit
4ddbd8e862
1 changed files with 10 additions and 5 deletions
|
@ -38,6 +38,7 @@
|
|||
#include <QWindow>
|
||||
|
||||
RECORDER(options, 32, "Information about command line options");
|
||||
RECORDER_TWEAK_DEFINE(rpl_objects_detail, 0, "Set to 1 to see object addresses")
|
||||
|
||||
bool run_tests = false;
|
||||
bool noisy_tests = false;
|
||||
|
@ -63,11 +64,15 @@ size_t recorder_render_object(intptr_t tracing,
|
|||
if (sz >= sizeof(tmp))
|
||||
sz = sizeof(tmp)-1;
|
||||
tmp[sz] = 0;
|
||||
result = snprintf(buffer, size, "%p[%lu] %s[%s]",
|
||||
(void *) value,
|
||||
value->size(),
|
||||
value->fancy(),
|
||||
tmp);
|
||||
if (RECORDER_TWEAK(rpl_objects_detail))
|
||||
result = snprintf(buffer, size, "%p[%lu] %s[%s]",
|
||||
(void *) value,
|
||||
value->size(),
|
||||
value->fancy(),
|
||||
tmp);
|
||||
else
|
||||
result = snprintf(buffer, size, "%s", tmp);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue