Changeset 253008 in webkit for trunk/Source/JavaScriptCore/tools


Ignore:
Timestamp:
Dec 2, 2019, 2:16:42 PM (5 years ago)
Author:
[email protected]
Message:

mozilla-tests.yaml/js1_5/Array/regress-101964.js is frequently failing on JSC EWS bots.
https://bugs.webkit.org/show_bug.cgi?id=200789
<rdar://problem/54361916>

Reviewed by Keith Miller.

JSTests:

The prevailing theory is that this test is being pre-empted and not getting the
CPU time it needs to complete. As a result, the wall clock time period for
running the test exceeds the expected time. This patch tests this theory by
changing the time measurement to use CPU time instead.

  • mozilla/js1_5/Array/regress-101964.js:

Source/JavaScriptCore:

  • tools/JSDollarVM.cpp:

(JSC::functionCurrentCPUTime):
(JSC::JSDollarVM::finishCreation):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/tools/JSDollarVM.cpp

    r252767 r253008  
    5454#include "WasmCapabilities.h"
    5555#include <wtf/Atomics.h>
     56#include <wtf/CPUTime.h>
    5657#include <wtf/DataLog.h>
    5758#include <wtf/ProcessID.h>
     
    26762677}
    26772678
     2679static EncodedJSValue JSC_HOST_CALL functionCurrentCPUTime(JSGlobalObject*, CallFrame*)
     2680{
     2681    DollarVMAssertScope assertScope;
     2682    return JSValue::encode(jsNumber(CPUTime::forCurrentThread().value()));
     2683}
     2684
    26782685static EncodedJSValue JSC_HOST_CALL functionTotalGCTime(JSGlobalObject* globalObject, CallFrame*)
    26792686{
     
    28332840    addFunction(vm, "deltaBetweenButterflies", functionDeltaBetweenButterflies, 2);
    28342841   
     2842    addFunction(vm, "currentCPUTime", functionCurrentCPUTime, 0);
    28352843    addFunction(vm, "totalGCTime", functionTotalGCTime, 0);
    28362844
Note: See TracChangeset for help on using the changeset viewer.