diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-02-17 15:45:36 +0100 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-02-17 15:45:36 +0100 |
commit | 00f4a4148a96cdffa0a9606f077ff294aa3b1f8c (patch) | |
tree | 64ae2399eb78231f4f18c45de94990e91300d46c /src/library.js | |
parent | 3e0fa38db893f089de92ebe255301ff391f25793 (diff) |
remove PROFILE option. It adds unacceptable overhead, and all browsers have proper JS profilers these days - use those
Diffstat (limited to 'src/library.js')
-rw-r--r-- | src/library.js | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/library.js b/src/library.js index ffac685b..4ebec526 100644 --- a/src/library.js +++ b/src/library.js @@ -7305,36 +7305,6 @@ LibraryManager.library = { emscripten_random: function() { return Math.random(); }, - - $Profiling: { - max_: 0, - times: null, - invalid: 0, - dump: function() { - if (Profiling.invalid) { - Module.printErr('Invalid # of calls to Profiling begin and end!'); - return; - } - Module.printErr('Profiling data:') - for (var i = 0; i < Profiling.max_; i++) { - Module.printErr('Block ' + i + ': ' + Profiling.times[i]); - } - } - }, - EMSCRIPTEN_PROFILE_INIT__deps: ['$Profiling'], - EMSCRIPTEN_PROFILE_INIT: function(max_) { - Profiling.max_ = max_; - Profiling.times = new Array(max_); - for (var i = 0; i < max_; i++) Profiling.times[i] = 0; - }, - EMSCRIPTEN_PROFILE_BEGIN__inline: function(id) { - return 'Profiling.times[' + id + '] -= Date.now();' - + 'Profiling.invalid++;' - }, - EMSCRIPTEN_PROFILE_END__inline: function(id) { - return 'Profiling.times[' + id + '] += Date.now();' - + 'Profiling.invalid--;' - } }; function autoAddDeps(object, name) { |