fixing tracking metrics

Summary:
- fixing dropped frames calculation
- fixing plugin activation time

Reviewed By: passy

Differential Revision: D9301759

fbshipit-source-id: 872e4d2edcafdbc67668f3d0b713dfbf55f068f5
This commit is contained in:
Daniel Büchele
2018-08-13 15:14:11 -07:00
committed by Facebook Github Bot
parent 656044ce69
commit eb316be4e4
2 changed files with 4 additions and 3 deletions

View File

@@ -108,7 +108,7 @@ class PluginContainer extends Component<Props, State> {
if (ref && target) {
activateMenuItems(ref);
ref._init();
this.props.logger.trackTimeSince(`activePlugin-${ref.id}`);
this.props.logger.trackTimeSince(`activePlugin-${ref.constructor.id}`);
this.plugin = ref;
}
};