src/aria/utils/Profiling.js
function (firstStart) {
            this._startTime = (firstStart) ? Aria._start : new Date();
            if (firstStart) {
                this._logs = [{
                            classpath : "Aria",
                            msg : "Framework initialization",
                            start : Aria._start
                        }, {
                            classpath : "Aria",
                            stop : (new Date()).getTime()
                        }];
                this._nbLogs = 2;
            } else {
                this._logs = [];
                this._nbLogs = 0;
            }

            // map function on JsObject prototype
            ariaCoreJsObject.prototype.$logTimestamp = function (msg, classpath) {
                classpath = classpath ? classpath : this.$classpath;
                aria.utils.Profiling.logTimestamp(classpath, msg);
            };
            ariaCoreJsObject.prototype.$startMeasure = function (msg, classpath) {
                classpath = classpath ? classpath : this.$classpath;
                return aria.utils.Profiling.startMeasure(classpath, msg);
            };
            ariaCoreJsObject.prototype.$stopMeasure = function (id, classpath) {
                classpath = classpath ? classpath : this.$classpath;
                aria.utils.Profiling.stopMeasure(classpath, id);
            };
        }
function (firstStart) {
            this._startTime = (firstStart) ? Aria._start : new Date();
            if (firstStart) {
                this._logs = [{
                            classpath : "Aria",
                            msg : "Framework initialization",
                            start : Aria._start
                        }, {
                            classpath : "Aria",
                            stop : (new Date()).getTime()
                        }];
                this._nbLogs = 2;
            } else {
                this._logs = [];
                this._nbLogs = 0;
            }

            // map function on JsObject prototype
            ariaCoreJsObject.prototype.$logTimestamp = function (msg, classpath) {
                classpath = classpath ? classpath : this.$classpath;
                aria.utils.Profiling.logTimestamp(classpath, msg);
            };
            ariaCoreJsObject.prototype.$startMeasure = function (msg, classpath) {
                classpath = classpath ? classpath : this.$classpath;
                return aria.utils.Profiling.startMeasure(classpath, msg);
            };
            ariaCoreJsObject.prototype.$stopMeasure = function (id, classpath) {
                classpath = classpath ? classpath : this.$classpath;
                aria.utils.Profiling.stopMeasure(classpath, id);
            };
        }
function ( firstStart ) { this . _startTime = ( firstStart ) ? Aria . _start : new Date ( ) ; if ( firstStart ) { this . _logs = [ { classpath : "Aria" , msg : "Framework initialization" , start : Aria . _start } , { classpath : "Aria" , stop : ( new Date ( ) ) . getTime ( ) } ] ; this . _nbLogs = 2 ; } else { this . _logs = [ ] ; this . _nbLogs = 0 ; } // map function on JsObject prototype ariaCoreJsObject . prototype . $logTimestamp = function ( msg , classpath ) { classpath = classpath ? classpath : this . $classpath ; aria . utils . Profiling . logTimestamp ( classpath , msg ) ; } ; ariaCoreJsObject . prototype . $startMeasure = function ( msg , classpath ) { classpath = classpath ? classpath : this . $classpath ; return aria . utils . Profiling . startMeasure ( classpath , msg ) ; } ; ariaCoreJsObject . prototype . $stopMeasure = function ( id , classpath ) { classpath = classpath ? classpath : this . $classpath ; aria . utils . Profiling . stopMeasure ( classpath , id ) ; } ; }
Reinitialize the profiling
@param {Boolean} firstStart
Reinitialize the profiling