src/utils/PerfUtils.js
function getHealthReport() {
        var healthReport = {
            projectLoadTimes : "",
            fileOpenTimes : ""
        };

        _.forEach(perfData, function (entry, testName) {
            if (StringUtils.startsWith(testName, "Application Startup")) {
                healthReport.AppStartupTime = getValueAsString(entry);
            } else if (StringUtils.startsWith(testName, "brackets module dependencies resolved")) {
                healthReport.ModuleDepsResolved = getValueAsString(entry);
            } else if (StringUtils.startsWith(testName, "Load Project")) {
                healthReport.projectLoadTimes += ":" + getValueAsString(entry, true);
            } else if (StringUtils.startsWith(testName, "Open File")) {
                healthReport.fileOpenTimes += ":" + getValueAsString(entry, true);
            }
        });

        return healthReport;
    }
function getHealthReport() {
        var healthReport = {
            projectLoadTimes : "",
            fileOpenTimes : ""
        };

        _.forEach(perfData, function (entry, testName) {
            if (StringUtils.startsWith(testName, "Application Startup")) {
                healthReport.AppStartupTime = getValueAsString(entry);
            } else if (StringUtils.startsWith(testName, "brackets module dependencies resolved")) {
                healthReport.ModuleDepsResolved = getValueAsString(entry);
            } else if (StringUtils.startsWith(testName, "Load Project")) {
                healthReport.projectLoadTimes += ":" + getValueAsString(entry, true);
            } else if (StringUtils.startsWith(testName, "Open File")) {
                healthReport.fileOpenTimes += ":" + getValueAsString(entry, true);
            }
        });

        return healthReport;
    }
function getHealthReport ( ) { var healthReport = { projectLoadTimes : "" , fileOpenTimes : "" } ; _ . forEach ( perfData , function ( entry , testName ) { if ( StringUtils . startsWith ( testName , "Application Startup" ) ) { healthReport . AppStartupTime = getValueAsString ( entry ) ; } else if ( StringUtils . startsWith ( testName , "brackets module dependencies resolved" ) ) { healthReport . ModuleDepsResolved = getValueAsString ( entry ) ; } else if ( StringUtils . startsWith ( testName , "Load Project" ) ) { healthReport . projectLoadTimes += ":" + getValueAsString ( entry , true ) ; } else if ( StringUtils . startsWith ( testName , "Open File" ) ) { healthReport . fileOpenTimes += ":" + getValueAsString ( entry , true ) ; } } ) ; return healthReport ; }
Returns the Performance metrics to be logged for health report
@return {Object} An object with the health data logs to be sent
Returns the Performance metrics to be logged for health report