X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=retrace%2Fretrace.hpp;h=6e6bf131c6dc82eed5710db6df6b5e8fb0328633;hb=0ef175f3dc9fe5453702e7ccf45f408b05174f9d;hp=14317cffbe96d7cbbe70c718127e537ea9aff5a1;hpb=4f9982f5ec3dccae65d5a49dfd5a81b9737d90cd;p=apitrace diff --git a/retrace/retrace.hpp b/retrace/retrace.hpp index 14317cf..6e6bf13 100644 --- a/retrace/retrace.hpp +++ b/retrace/retrace.hpp @@ -38,6 +38,7 @@ #include "trace_model.hpp" #include "trace_parser.hpp" #include "trace_profiler.hpp" +#include "trace_dump.hpp" #include "scoped_allocator.hpp" @@ -62,11 +63,11 @@ public: */ inline void * alloc(const trace::Value *value, size_t size) { - const trace::Array *array = dynamic_cast(value); + const trace::Array *array = value->toArray(); if (array) { return ::ScopedAllocator::alloc(array->size() * size); } - const trace::Null *null = dynamic_cast(value); + const trace::Null *null = value->toNull(); if (null) { return NULL; } @@ -120,6 +121,7 @@ extern bool coreProfile; extern unsigned frameNo; extern unsigned callNo; +extern trace::DumpFlags dumpFlags; std::ostream &warning(trace::Call &call);