I'm using Firebase Performance Monitoring
plug-in for my projects, in order to track / inspect my code.
I create a Trace
on the onPreExecute()
method of custom AsyncTask
(here I post only the methods where I use Trace
) :
@Override
protected void onPreExecute() {
// Start trace which track the analysis of raw data
Trace trace = FirebasePerformance.getInstance().newTrace(traceTag);
mTraceMaps.put(traceTag, trace);
trace.start();
trace.incrementCounter(counterTag, totalItems);
}
@Override
protected void onPostExecute(Bundle result) {
// Stop trace which track the analysis of raw data
Trace trace = mTraceMaps.get(traceTag);
if (trace != null) {
trace.stop();
mTraceMaps.remove(traceTag);
}
}
Please note that traceTag
and counterTag
are constants in my class.
The problem is that I can't see anything on Firebase console. I'm expecting an int
showing me how many raw data I collected.
Am I missing something ? Does my code is correct ?
It seems that It only takes patience and after 12 hours delay they finally show up.