mattermost-mobile/app/telemetry/telemetry.ios.js
Saturnino Abril e086d66ec2
[MM-13955] Add telemetry for Android (#2719)
* add markers for Android profiling

* update per comments

* Remove beta build flag

* update per comment, latest change on telemetry server and others

* rebase and fix merge conflicts, and update per comments

* update commit hash of mattermost-redux
2019-05-08 00:23:59 +08:00

34 lines
702 B
JavaScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
class Telemetry {
constructor() {
this.appStartTime = 0;
this.reactInitializedStartTime = 0;
this.reactInitializedEndTime = 0;
this.metrics = [];
this.currentMetrics = {};
this.pendingSinceLaunchMetrics = [];
}
setAppStartTime = () => true;
reset = () => true;
canSendTelemetry = () => false;
start = () => true;
end = () => true;
include = () => true;
startSinceLaunch = () => true;
remove = () => true;
save = () => true;
}
const telemetry = new Telemetry();
export default telemetry;