author Ted Mielczarek <ted@mielczarek.org>
Wed, 12 Apr 2017 15:06:22 -0400
changeset 353399 b5552791f6c8da640cfcb248ba4681d4d31594a5
parent 246062 f2a922fd623e11743f1f2d5379799dab857e4893
child 400731 b1c58e1131b79736bd9ae9fd27d48d36741c0341
permissions -rw-r--r--
bug 1355961 - add some sccache stats to build_metrics. r=gps This commit makes sccache dump JSON stats at the end of the build, and then reads them in `BuildScript.generate_build_stats` and adds them to the build_metrics we submit to Perfherder. The stats dumping is done in Makefile.in where we currently dump verbose sccache stats because sccache doesn't persist stats to disk right now and it will also shut down its server process after 5 minutes, so when the post-build automation steps take more than 5 minutes the server shuts down and the stats are lost. Currently it's collecting: * Cache hit rate * Cache write errors * Non-cacheable requests (compiler invocations that sccache can't cache) We can always grow this list later. MozReview-Commit-ID: J9CwU7XB05I

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "nsISupports.idl"

Editor Observer interface to outside world

[scriptable, uuid(f3ee57a6-890c-4ce0-a584-8a84bba0292e)]

 * A generic editor observer interface.
 * <P>
 * nsIEditorObserver is the interface used by applications wishing to be notified
 * when the editor has completed a user action.
interface nsIEditorObserver : nsISupports {
   * Called after the editor completes a user action.
  void EditAction();
   * Called when editor starts to handle a user action.  I.e., This must be
   * called before the first DOM change.
  void BeforeEditAction();
   * Called after BeforeEditAction() is called but EditorAction() won't be
   * called.
  void CancelEditAction();