Get the number of bytes stored in the compile-time selected trace backend.
Note
To ensure the retrieved number of bytes is correct, this function should only be called when the backend is done processing traces. Set to NULL if this operation is not supported by the trace backend.