Changeset 231238 in webkit for trunk/Source/JavaScriptCore/jsc.cpp
- Timestamp:
- May 2, 2018, 10:05:50 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/jsc.cpp
r231194 r231238 83 83 #include <wtf/CommaPrinter.h> 84 84 #include <wtf/MainThread.h> 85 #include <wtf/MonotonicTime.h> 85 86 #include <wtf/NeverDestroyed.h> 86 87 #include <wtf/StringPrintStream.h> … … 341 342 static EncodedJSValue JSC_HOST_CALL functionDollarAgentGetReport(ExecState*); 342 343 static EncodedJSValue JSC_HOST_CALL functionDollarAgentLeaving(ExecState*); 344 static EncodedJSValue JSC_HOST_CALL functionDollarAgentMonotonicNow(ExecState*); 343 345 static EncodedJSValue JSC_HOST_CALL functionWaitForReport(ExecState*); 344 346 static EncodedJSValue JSC_HOST_CALL functionHeapCapacity(ExecState*); … … 596 598 addFunction(vm, agent, "getReport", functionDollarAgentGetReport, 0); 597 599 addFunction(vm, agent, "leaving", functionDollarAgentLeaving, 0); 598 600 addFunction(vm, agent, "monotonicNow", functionDollarAgentMonotonicNow, 0); 601 599 602 addFunction(vm, "waitForReport", functionWaitForReport, 0); 600 603 … … 1747 1750 } 1748 1751 1752 EncodedJSValue JSC_HOST_CALL functionDollarAgentMonotonicNow(ExecState*) 1753 { 1754 return JSValue::encode(jsNumber(MonotonicTime::now().secondsSinceEpoch().milliseconds())); 1755 } 1756 1749 1757 EncodedJSValue JSC_HOST_CALL functionWaitForReport(ExecState* exec) 1750 1758 {
Note:
See TracChangeset
for help on using the changeset viewer.