void PerformanceResourceTiming::buildJSONValue(V8ObjectBuilder& builder) const
{
    PerformanceEntry::buildJSONValue(builder);
    builder.addString("initiatorType", initiatorType());
    builder.addNumber("workerStart", workerStart());
    builder.addNumber("redirectStart", redirectStart());
    builder.addNumber("redirectEnd", redirectEnd());
    builder.addNumber("fetchStart", fetchStart());
    builder.addNumber("domainLookupStart", domainLookupStart());
    builder.addNumber("domainLookupEnd", domainLookupEnd());
    builder.addNumber("connectStart", connectStart());
    builder.addNumber("connectEnd", connectEnd());
    builder.addNumber("secureConnectionStart", secureConnectionStart());
    builder.addNumber("requestStart", requestStart());
    builder.addNumber("responseStart", responseStart());
    builder.addNumber("responseEnd", responseEnd());
}
Ejemplo n.º 2
0
bool
serverStart (
    Server *self
) {
    // Start all the Workers
    for (int i = 0; i < self->info.routerInfo.workersCount; i++) {
        if (!(workerStart (self->workers[i]))) {
            error("[routerId=%d][WorkerId=%d] Cannot start the Worker", routerGetId (self->router), i);
            return false;
        }
    }

    // Start the Router
    if (!(routerStart (self->router))) {
        error("[routerId=%d] Cannot start the router.", routerGetId (self->router));
        return false;
    }

    return true;
}