constructor()

in lib/main.ts [30:42]


  constructor(options: any) {
    super(options);

    options = options || { timeout: NativeMetricEmitter.DEFAULT_INTERVAL };
    this.enabled = false;
    this._handle = null;

    this._loopProfiler = new natives.LoopProfiler();
    this._gcProfiler = new natives.GcProfiler();
    this._resourceProfiler = new natives.ResourceProfiler();

    this.enable(true, options.timeout);
  }