YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.multiroom.engine.EventTrace Class Reference

A bounded record of what the engine and the output did, for finding out why a stream does not play right: the last CAPACITY events with the time since the trace began and up to three numbers each. More...

Collaboration diagram for de.yaacc.multiroom.engine.EventTrace:
Collaboration graph

Public Member Functions

 EventTrace (long startMicros)
 
synchronized void add (long nowMicros, TraceKind kind, long first, long second, long third)
 
synchronized int importantSize ()
 Important events kept (at most IMPORTANT_CAPACITY).
 
synchronized String importantText ()
 The important events, oldest first, in the format of text().
 
void add (long nowMicros, TraceKind kind)
 
void add (long nowMicros, TraceKind kind, long first)
 
void add (long nowMicros, TraceKind kind, long first, long second)
 
synchronized int size ()
 Events kept (at most CAPACITY).
 
synchronized long total ()
 Events ever added.
 
synchronized long overwritten ()
 How many of the oldest events were overwritten.
 
synchronized TraceKind kindAt (int index)
 The kind of the event with this index, 0 being the oldest kept one.
 
synchronized String text ()
 Oldest first, one event per line: " 1234 ms flush reason=hard resync written frames=19200".
 

Static Public Member Functions

static void setSessionEndNames (String[] names)
 Registers the names (lower case) that the ordinals of SESSION_END entries stand for.
 

Static Public Attributes

static final int CAPACITY = 600
 
static final int IMPORTANT_CAPACITY = 100
 The separate ring of rare, important events (they scroll out of the main ring in minutes when a stream is busy).
 

Detailed Description

A bounded record of what the engine and the output did, for finding out why a stream does not play right: the last CAPACITY events with the time since the trace began and up to three numbers each.

The oldest are overwritten. Thread safe (the engine thread writes, the screen reads). Pure.

Constructor & Destructor Documentation

◆ EventTrace()

de.yaacc.multiroom.engine.EventTrace.EventTrace ( long startMicros)
Parameters
startMicrosthe engine clock at the start; the events show the time since then

The documentation for this class was generated from the following file: