Clarification around data.days entries

Robert Kaiser kairo at mozilla.com
Tue Mar 4 07:50:50 PST 2014


Richard Newman schrieb:
>>> Fennec records sessions when they *finish*, but attributes them retrospectively to the date on which the session began.
>> Just out of interest, does that mean the currently open session is always missing?
> Yes. But remember that Fennec browser sessions are way more granular than desktop's; they run from onResume to onPause, so whenever you switch apps, hit Home, or the phone goes to sleep, your session ends.

Ah, interesting, and surely different than what I would expect, though 
it makes sense. I guess we should have everything documented that gets 
explained in this thread. ;-)

>> What about ones that have been unexpectedly terminated, do we detect and record those correctly?
> Orphans are detected and flushed on next startup.

Hmm, that sounds like we'd miss out on info about sessions where we 
crash or otherwise die. Don't we want to do stats on those?

KaiRo


More information about the fhr-dev mailing list