 /*******************************************************************************************************************************
 * It's Browser Time!
 * 
 *
 * Copyright (C) 2013 by Tobias Lidskog (https://twitter.com/tobiaslidskog) &  Peter Hedenskog (http://peterhedenskog.com)
 *
 ********************************************************************************************************************************
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in 
 * compliance with the License. You may obtain a copy of the License at
 * 
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License is 
 * distributed  on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   
 * See the License for the specific language governing permissions and limitations under the License.
 *
 ********************************************************************************************************************************
 */
package com.soulgalore.web.browsertime.datacollector;

import com.soulgalore.web.browsertime.timings.TimingMark;
import com.soulgalore.web.browsertime.timings.TimingRun;

import org.openqa.selenium.JavascriptExecutor;

import java.util.Map;

/**
 *
 */
public class ChromeDataCollector extends TimingDataCollector {
    /*
    window.chrome.loadTimes():
    commitLoadTime: 1379543366.221452
connectionInfo: "http/1"
finishDocumentLoadTime: 1379543366.608697
finishLoadTime: 1379543368.68224
firstPaintAfterLoadTime: 1379543369.41713
firstPaintTime: 1379543366.346558
navigationType: "Other"
npnNegotiatedProtocol: "unknown"
requestTime: 1379543366.031938
startLoadTime: 1379543366.178765
wasAlternateProtocolAvailable: false
wasFetchedViaSpdy: false
wasNpnNegotiated: false
     */

    @Override
    public void collectPageData(JavascriptExecutor js, Map<String, String> pageInfo) {
        super.collectPageData(js, pageInfo);

        Boolean wasFetchedViaSpdy = (Boolean) js
                .executeScript("return window.chrome.loadTimes().wasFetchedViaSpdy");
        pageInfo.put("wasFetchedViaSpdy", Boolean.toString(wasFetchedViaSpdy));
    }

    @Override
    public void collectMarks(JavascriptExecutor js, TimingRun results) {
        super.collectMarks(js, results);

        // Chrome timing is in s.ms, convert it to ms!!
        Double time = (Double) js.executeScript("return window.chrome.loadTimes().firstPaintTime");
        results.addMark(new TimingMark("firstPaintTime", (long) (time * 1000)));
    }

    @Override
    public void collectMeasurements(JavascriptExecutor js, TimingRun results) {
        MarkInterval interval = new MarkInterval("firstPaint", "navigationStart", "firstPaintTime");
        interval.collectMeasurement(results);
    }
}

@@ -1423,475 +1423,8 @@
 or %7B
-%0A    /*%0A    window.chrome.loadTimes():%0A    commitLoadTime: 1379543366.221452%0AconnectionInfo: %22http/1%22%0AfinishDocumentLoadTime: 1379543366.608697%0AfinishLoadTime: 1379543368.68224%0AfirstPaintAfterLoadTime: 1379543369.41713%0AfirstPaintTime: 1379543366.346558%0AnavigationType: %22Other%22%0AnpnNegotiatedProtocol: %22unknown%22%0ArequestTime: 1379543366.031938%0AstartLoadTime: 1379543366.178765%0AwasAlternateProtocolAvailable: false%0AwasFetchedViaSpdy: false%0AwasNpnNegotiated: false%0A     */
 %0A%0A  

Remove comment with example data.