extensions/wtf-injector-firefox/lib/main.js
function acquireMemoryObserver() {
  // Only enable on first use.
  ++memoryObservationCount;
  if (memoryObservationCount > 1) {
    return;
  }

  // Enable memory notification.
  setTemporaryPreference('javascript.options.mem.notify', true);

  // Listen for events.
  Services.obs.addObserver(
      handleMemoryEvent, 'garbage-collection-statistics', false);
}
function acquireMemoryObserver() {
  // Only enable on first use.
  ++memoryObservationCount;
  if (memoryObservationCount > 1) {
    return;
  }

  // Enable memory notification.
  setTemporaryPreference('javascript.options.mem.notify', true);

  // Listen for events.
  Services.obs.addObserver(
      handleMemoryEvent, 'garbage-collection-statistics', false);
}
function acquireMemoryObserver ( ) { // Only enable on first use. ++ memoryObservationCount ; if ( memoryObservationCount > 1 ) { return ; } // Enable memory notification. setTemporaryPreference ( 'javascript.options.mem.notify' , true ) ; // Listen for events. Services . obs . addObserver ( handleMemoryEvent , 'garbage-collection-statistics' , false ) ; }
Acquires a reference to the memory observer, starting it if this is the first
reference.
Acquires a reference to the memory observer starting it if this is the first reference .