class AnalyticsReporter

Defined at line 24 of file ../../src/developer/debug/zxdb/client/analytics_reporter.h

Entry point for sending zxdb events. This class is owned by the Session, and can be used from

different contexts where interesting things happen. The goal of the API is to be as simple and

unobtrusive as possible for the caller. There are no callbacks and no status reporting. Callers

may safely fire and forget any event, and do not need to perform any checks for validity or

enablement to call these methods.

See the corresponding event definitions for more information about the parameters.

Public Methods

void AnalyticsReporter ()

Defined at line 15 of file ../../src/developer/debug/zxdb/client/analytics_reporter.cc

void Init (Session * session)

Explicitly initialize analytics reporting. This must be called before any of the reporting

methods will actually fire events. The session is sent with all events to the analytics client

implementation (see analytics.h), where the session is checked for validity. If an event

requires access to the Session object, it should be passed directly to that Event's respective

Report method.

Explicit opt-in is chosen so that clients of this library that are not zxdb may simply ignore

this class and not impact zxdb's analytics. Other users of this library (symbolizer) would skew

other tools' data. The session is also manually constructed in many unittests, which should not

be reporting analytics.

Note that this is separate from the user opt-in, which is handled by the analytics library.

Defined at line 17 of file ../../src/developer/debug/zxdb/client/analytics_reporter.cc

void ReportInvoked ()

Defined at line 22 of file ../../src/developer/debug/zxdb/client/analytics_reporter.cc

void ReportSessionStarted ()

Defined at line 27 of file ../../src/developer/debug/zxdb/client/analytics_reporter.cc

void ReportSessionConnected (bool is_minidump, bool local_agent)

Defined at line 31 of file ../../src/developer/debug/zxdb/client/analytics_reporter.cc

void ReportSessionEnded ()

Defined at line 47 of file ../../src/developer/debug/zxdb/client/analytics_reporter.cc

void ReportCommand (const CommandReport & report)

Defined at line 57 of file ../../src/developer/debug/zxdb/client/analytics_reporter.cc

void ReportConsoleType (ConsoleType::Type type)

Defined at line 64 of file ../../src/developer/debug/zxdb/client/analytics_reporter.cc