extensions/wtf-injector-chrome/popup.js
function instrumentMemoryClicked() {
  _gaq.push(['_trackEvent', 'popup', 'instrument_memory']);

  try {
    new Function('return %GetHeapUsage()');
  } catch (e) {
    // Pop open docs page.
    port.postMessage({
      command: 'instrument',
      type: 'memory',
      needsHelp: true
    });
    return;
  }

  port.postMessage({
    command: 'instrument',
    type: 'memory'
  });
  window.close();
}
function instrumentMemoryClicked() {
  _gaq.push(['_trackEvent', 'popup', 'instrument_memory']);

  try {
    new Function('return %GetHeapUsage()');
  } catch (e) {
    // Pop open docs page.
    port.postMessage({
      command: 'instrument',
      type: 'memory',
      needsHelp: true
    });
    return;
  }

  port.postMessage({
    command: 'instrument',
    type: 'memory'
  });
  window.close();
}
function instrumentMemoryClicked ( ) { _gaq . push ( [ '_trackEvent' , 'popup' , 'instrument_memory' ] ) ; try { new Function ( 'return %GetHeapUsage()' ) ; } catch ( e ) { // Pop open docs page. port . postMessage ( { command : 'instrument' , type : 'memory' , needsHelp : true } ) ; return ; } port . postMessage ( { command : 'instrument' , type : 'memory' } ) ; window . close ( ) ; }
Toggles instrumented memory tracing.
Toggles instrumented memory tracing .