diff --git a/cmake/Sources.json b/cmake/Sources.json index 0caef09fe4..cee9e5f271 100644 --- a/cmake/Sources.json +++ b/cmake/Sources.json @@ -85,6 +85,7 @@ "src/buntime/web/compression/*.cpp", "src/buntime/web/events/*.cpp", "src/buntime/web/streams/*.cpp", + "src/buntime/web/performance/*.cpp", "src/bake/*.cpp", "src/deps/*.cpp", "src/vm/*.cpp", diff --git a/cmake/targets/BuildBun.cmake b/cmake/targets/BuildBun.cmake index b2f164e76c..cd03f7dd05 100644 --- a/cmake/targets/BuildBun.cmake +++ b/cmake/targets/BuildBun.cmake @@ -896,6 +896,7 @@ target_include_directories(${bun} PRIVATE ${CWD}/src/buntime/web/compression ${CWD}/src/buntime/web/events ${CWD}/src/buntime/web/streams + ${CWD}/src/buntime/web/performance ${CWD}/src/buntime/modules ${CWD}/src/js/builtins ${CWD}/src/napi diff --git a/src/buntime/webcore/JSPerformance.cpp b/src/buntime/web/performance/JSPerformance.cpp similarity index 100% rename from src/buntime/webcore/JSPerformance.cpp rename to src/buntime/web/performance/JSPerformance.cpp diff --git a/src/buntime/webcore/JSPerformance.h b/src/buntime/web/performance/JSPerformance.h similarity index 100% rename from src/buntime/webcore/JSPerformance.h rename to src/buntime/web/performance/JSPerformance.h diff --git a/src/buntime/webcore/JSPerformanceEntry.cpp b/src/buntime/web/performance/JSPerformanceEntry.cpp similarity index 100% rename from src/buntime/webcore/JSPerformanceEntry.cpp rename to src/buntime/web/performance/JSPerformanceEntry.cpp diff --git a/src/buntime/webcore/JSPerformanceEntry.h b/src/buntime/web/performance/JSPerformanceEntry.h similarity index 100% rename from src/buntime/webcore/JSPerformanceEntry.h rename to src/buntime/web/performance/JSPerformanceEntry.h diff --git a/src/buntime/webcore/JSPerformanceEntryCustom.cpp b/src/buntime/web/performance/JSPerformanceEntryCustom.cpp similarity index 99% rename from src/buntime/webcore/JSPerformanceEntryCustom.cpp rename to src/buntime/web/performance/JSPerformanceEntryCustom.cpp index 944427d627..c00b02b505 100644 --- a/src/buntime/webcore/JSPerformanceEntryCustom.cpp +++ b/src/buntime/web/performance/JSPerformanceEntryCustom.cpp @@ -33,6 +33,7 @@ #include "JSPerformanceEntry.h" #include "JSDOMBinding.h" +#include "JSDOMWrapperCache.h" #include "JSPerformanceMark.h" #include "JSPerformanceMeasure.h" // #include "JSPerformanceNavigationTiming.h" diff --git a/src/buntime/webcore/JSPerformanceMark.cpp b/src/buntime/web/performance/JSPerformanceMark.cpp similarity index 100% rename from src/buntime/webcore/JSPerformanceMark.cpp rename to src/buntime/web/performance/JSPerformanceMark.cpp diff --git a/src/buntime/webcore/JSPerformanceMark.h b/src/buntime/web/performance/JSPerformanceMark.h similarity index 100% rename from src/buntime/webcore/JSPerformanceMark.h rename to src/buntime/web/performance/JSPerformanceMark.h diff --git a/src/buntime/webcore/JSPerformanceMarkOptions.cpp b/src/buntime/web/performance/JSPerformanceMarkOptions.cpp similarity index 100% rename from src/buntime/webcore/JSPerformanceMarkOptions.cpp rename to src/buntime/web/performance/JSPerformanceMarkOptions.cpp diff --git a/src/buntime/webcore/JSPerformanceMarkOptions.h b/src/buntime/web/performance/JSPerformanceMarkOptions.h similarity index 100% rename from src/buntime/webcore/JSPerformanceMarkOptions.h rename to src/buntime/web/performance/JSPerformanceMarkOptions.h diff --git a/src/buntime/webcore/JSPerformanceMeasure.cpp b/src/buntime/web/performance/JSPerformanceMeasure.cpp similarity index 100% rename from src/buntime/webcore/JSPerformanceMeasure.cpp rename to src/buntime/web/performance/JSPerformanceMeasure.cpp diff --git a/src/buntime/webcore/JSPerformanceMeasure.h b/src/buntime/web/performance/JSPerformanceMeasure.h similarity index 100% rename from src/buntime/webcore/JSPerformanceMeasure.h rename to src/buntime/web/performance/JSPerformanceMeasure.h diff --git a/src/buntime/webcore/JSPerformanceMeasureOptions.cpp b/src/buntime/web/performance/JSPerformanceMeasureOptions.cpp similarity index 100% rename from src/buntime/webcore/JSPerformanceMeasureOptions.cpp rename to src/buntime/web/performance/JSPerformanceMeasureOptions.cpp diff --git a/src/buntime/webcore/JSPerformanceMeasureOptions.h b/src/buntime/web/performance/JSPerformanceMeasureOptions.h similarity index 100% rename from src/buntime/webcore/JSPerformanceMeasureOptions.h rename to src/buntime/web/performance/JSPerformanceMeasureOptions.h diff --git a/src/buntime/webcore/JSPerformanceObserver.cpp b/src/buntime/web/performance/JSPerformanceObserver.cpp similarity index 100% rename from src/buntime/webcore/JSPerformanceObserver.cpp rename to src/buntime/web/performance/JSPerformanceObserver.cpp diff --git a/src/buntime/webcore/JSPerformanceObserver.h b/src/buntime/web/performance/JSPerformanceObserver.h similarity index 100% rename from src/buntime/webcore/JSPerformanceObserver.h rename to src/buntime/web/performance/JSPerformanceObserver.h diff --git a/src/buntime/webcore/JSPerformanceObserverCallback.cpp b/src/buntime/web/performance/JSPerformanceObserverCallback.cpp similarity index 100% rename from src/buntime/webcore/JSPerformanceObserverCallback.cpp rename to src/buntime/web/performance/JSPerformanceObserverCallback.cpp diff --git a/src/buntime/webcore/JSPerformanceObserverCallback.h b/src/buntime/web/performance/JSPerformanceObserverCallback.h similarity index 100% rename from src/buntime/webcore/JSPerformanceObserverCallback.h rename to src/buntime/web/performance/JSPerformanceObserverCallback.h diff --git a/src/buntime/webcore/JSPerformanceObserverCustom.cpp b/src/buntime/web/performance/JSPerformanceObserverCustom.cpp similarity index 100% rename from src/buntime/webcore/JSPerformanceObserverCustom.cpp rename to src/buntime/web/performance/JSPerformanceObserverCustom.cpp diff --git a/src/buntime/webcore/JSPerformanceObserverEntryList.cpp b/src/buntime/web/performance/JSPerformanceObserverEntryList.cpp similarity index 100% rename from src/buntime/webcore/JSPerformanceObserverEntryList.cpp rename to src/buntime/web/performance/JSPerformanceObserverEntryList.cpp diff --git a/src/buntime/webcore/JSPerformanceObserverEntryList.h b/src/buntime/web/performance/JSPerformanceObserverEntryList.h similarity index 100% rename from src/buntime/webcore/JSPerformanceObserverEntryList.h rename to src/buntime/web/performance/JSPerformanceObserverEntryList.h diff --git a/src/buntime/webcore/JSPerformanceResourceTiming.cpp b/src/buntime/web/performance/JSPerformanceResourceTiming.cpp similarity index 100% rename from src/buntime/webcore/JSPerformanceResourceTiming.cpp rename to src/buntime/web/performance/JSPerformanceResourceTiming.cpp diff --git a/src/buntime/webcore/JSPerformanceResourceTiming.h b/src/buntime/web/performance/JSPerformanceResourceTiming.h similarity index 100% rename from src/buntime/webcore/JSPerformanceResourceTiming.h rename to src/buntime/web/performance/JSPerformanceResourceTiming.h diff --git a/src/buntime/webcore/JSPerformanceServerTiming.cpp b/src/buntime/web/performance/JSPerformanceServerTiming.cpp similarity index 100% rename from src/buntime/webcore/JSPerformanceServerTiming.cpp rename to src/buntime/web/performance/JSPerformanceServerTiming.cpp diff --git a/src/buntime/webcore/JSPerformanceServerTiming.h b/src/buntime/web/performance/JSPerformanceServerTiming.h similarity index 100% rename from src/buntime/webcore/JSPerformanceServerTiming.h rename to src/buntime/web/performance/JSPerformanceServerTiming.h diff --git a/src/buntime/webcore/JSPerformanceTiming.cpp b/src/buntime/web/performance/JSPerformanceTiming.cpp similarity index 100% rename from src/buntime/webcore/JSPerformanceTiming.cpp rename to src/buntime/web/performance/JSPerformanceTiming.cpp diff --git a/src/buntime/webcore/JSPerformanceTiming.h b/src/buntime/web/performance/JSPerformanceTiming.h similarity index 100% rename from src/buntime/webcore/JSPerformanceTiming.h rename to src/buntime/web/performance/JSPerformanceTiming.h diff --git a/src/buntime/webcore/NetworkLoadMetrics.cpp b/src/buntime/web/performance/NetworkLoadMetrics.cpp similarity index 100% rename from src/buntime/webcore/NetworkLoadMetrics.cpp rename to src/buntime/web/performance/NetworkLoadMetrics.cpp diff --git a/src/buntime/webcore/NetworkLoadMetrics.h b/src/buntime/web/performance/NetworkLoadMetrics.h similarity index 100% rename from src/buntime/webcore/NetworkLoadMetrics.h rename to src/buntime/web/performance/NetworkLoadMetrics.h diff --git a/src/buntime/webcore/Performance.cpp b/src/buntime/web/performance/Performance.cpp similarity index 100% rename from src/buntime/webcore/Performance.cpp rename to src/buntime/web/performance/Performance.cpp diff --git a/src/buntime/webcore/Performance.h b/src/buntime/web/performance/Performance.h similarity index 100% rename from src/buntime/webcore/Performance.h rename to src/buntime/web/performance/Performance.h diff --git a/src/buntime/webcore/PerformanceEntry.cpp b/src/buntime/web/performance/PerformanceEntry.cpp similarity index 100% rename from src/buntime/webcore/PerformanceEntry.cpp rename to src/buntime/web/performance/PerformanceEntry.cpp diff --git a/src/buntime/webcore/PerformanceEntry.h b/src/buntime/web/performance/PerformanceEntry.h similarity index 100% rename from src/buntime/webcore/PerformanceEntry.h rename to src/buntime/web/performance/PerformanceEntry.h diff --git a/src/buntime/webcore/PerformanceMark.cpp b/src/buntime/web/performance/PerformanceMark.cpp similarity index 100% rename from src/buntime/webcore/PerformanceMark.cpp rename to src/buntime/web/performance/PerformanceMark.cpp diff --git a/src/buntime/webcore/PerformanceMark.h b/src/buntime/web/performance/PerformanceMark.h similarity index 100% rename from src/buntime/webcore/PerformanceMark.h rename to src/buntime/web/performance/PerformanceMark.h diff --git a/src/buntime/webcore/PerformanceMarkOptions.h b/src/buntime/web/performance/PerformanceMarkOptions.h similarity index 100% rename from src/buntime/webcore/PerformanceMarkOptions.h rename to src/buntime/web/performance/PerformanceMarkOptions.h diff --git a/src/buntime/webcore/PerformanceMeasure.cpp b/src/buntime/web/performance/PerformanceMeasure.cpp similarity index 100% rename from src/buntime/webcore/PerformanceMeasure.cpp rename to src/buntime/web/performance/PerformanceMeasure.cpp diff --git a/src/buntime/webcore/PerformanceMeasure.h b/src/buntime/web/performance/PerformanceMeasure.h similarity index 100% rename from src/buntime/webcore/PerformanceMeasure.h rename to src/buntime/web/performance/PerformanceMeasure.h diff --git a/src/buntime/webcore/PerformanceMeasureOptions.h b/src/buntime/web/performance/PerformanceMeasureOptions.h similarity index 100% rename from src/buntime/webcore/PerformanceMeasureOptions.h rename to src/buntime/web/performance/PerformanceMeasureOptions.h diff --git a/src/buntime/webcore/PerformanceObserver.cpp b/src/buntime/web/performance/PerformanceObserver.cpp similarity index 100% rename from src/buntime/webcore/PerformanceObserver.cpp rename to src/buntime/web/performance/PerformanceObserver.cpp diff --git a/src/buntime/webcore/PerformanceObserver.h b/src/buntime/web/performance/PerformanceObserver.h similarity index 100% rename from src/buntime/webcore/PerformanceObserver.h rename to src/buntime/web/performance/PerformanceObserver.h diff --git a/src/buntime/webcore/PerformanceObserverCallback.h b/src/buntime/web/performance/PerformanceObserverCallback.h similarity index 100% rename from src/buntime/webcore/PerformanceObserverCallback.h rename to src/buntime/web/performance/PerformanceObserverCallback.h diff --git a/src/buntime/webcore/PerformanceObserverEntryList.cpp b/src/buntime/web/performance/PerformanceObserverEntryList.cpp similarity index 100% rename from src/buntime/webcore/PerformanceObserverEntryList.cpp rename to src/buntime/web/performance/PerformanceObserverEntryList.cpp diff --git a/src/buntime/webcore/PerformanceObserverEntryList.h b/src/buntime/web/performance/PerformanceObserverEntryList.h similarity index 100% rename from src/buntime/webcore/PerformanceObserverEntryList.h rename to src/buntime/web/performance/PerformanceObserverEntryList.h diff --git a/src/buntime/webcore/PerformanceResourceTiming.cpp b/src/buntime/web/performance/PerformanceResourceTiming.cpp similarity index 100% rename from src/buntime/webcore/PerformanceResourceTiming.cpp rename to src/buntime/web/performance/PerformanceResourceTiming.cpp diff --git a/src/buntime/webcore/PerformanceResourceTiming.h b/src/buntime/web/performance/PerformanceResourceTiming.h similarity index 100% rename from src/buntime/webcore/PerformanceResourceTiming.h rename to src/buntime/web/performance/PerformanceResourceTiming.h diff --git a/src/buntime/webcore/PerformanceResourceTiming.idl b/src/buntime/web/performance/PerformanceResourceTiming.idl similarity index 100% rename from src/buntime/webcore/PerformanceResourceTiming.idl rename to src/buntime/web/performance/PerformanceResourceTiming.idl diff --git a/src/buntime/webcore/PerformanceServerTiming.cpp b/src/buntime/web/performance/PerformanceServerTiming.cpp similarity index 100% rename from src/buntime/webcore/PerformanceServerTiming.cpp rename to src/buntime/web/performance/PerformanceServerTiming.cpp diff --git a/src/buntime/webcore/PerformanceServerTiming.h b/src/buntime/web/performance/PerformanceServerTiming.h similarity index 100% rename from src/buntime/webcore/PerformanceServerTiming.h rename to src/buntime/web/performance/PerformanceServerTiming.h diff --git a/src/buntime/webcore/PerformanceServerTiming.idl b/src/buntime/web/performance/PerformanceServerTiming.idl similarity index 100% rename from src/buntime/webcore/PerformanceServerTiming.idl rename to src/buntime/web/performance/PerformanceServerTiming.idl diff --git a/src/buntime/webcore/PerformanceTiming.cpp b/src/buntime/web/performance/PerformanceTiming.cpp similarity index 100% rename from src/buntime/webcore/PerformanceTiming.cpp rename to src/buntime/web/performance/PerformanceTiming.cpp diff --git a/src/buntime/webcore/PerformanceTiming.h b/src/buntime/web/performance/PerformanceTiming.h similarity index 100% rename from src/buntime/webcore/PerformanceTiming.h rename to src/buntime/web/performance/PerformanceTiming.h diff --git a/src/buntime/webcore/PerformanceUserTiming.cpp b/src/buntime/web/performance/PerformanceUserTiming.cpp similarity index 100% rename from src/buntime/webcore/PerformanceUserTiming.cpp rename to src/buntime/web/performance/PerformanceUserTiming.cpp diff --git a/src/buntime/webcore/PerformanceUserTiming.h b/src/buntime/web/performance/PerformanceUserTiming.h similarity index 100% rename from src/buntime/webcore/PerformanceUserTiming.h rename to src/buntime/web/performance/PerformanceUserTiming.h diff --git a/src/buntime/webcore/ResourceLoadTiming.h b/src/buntime/web/performance/ResourceLoadTiming.h similarity index 100% rename from src/buntime/webcore/ResourceLoadTiming.h rename to src/buntime/web/performance/ResourceLoadTiming.h diff --git a/src/buntime/webcore/ResourceTiming.cpp b/src/buntime/web/performance/ResourceTiming.cpp similarity index 100% rename from src/buntime/webcore/ResourceTiming.cpp rename to src/buntime/web/performance/ResourceTiming.cpp diff --git a/src/buntime/webcore/ResourceTiming.h b/src/buntime/web/performance/ResourceTiming.h similarity index 100% rename from src/buntime/webcore/ResourceTiming.h rename to src/buntime/web/performance/ResourceTiming.h diff --git a/src/buntime/webcore/ServerTiming.cpp b/src/buntime/web/performance/ServerTiming.cpp similarity index 100% rename from src/buntime/webcore/ServerTiming.cpp rename to src/buntime/web/performance/ServerTiming.cpp diff --git a/src/buntime/webcore/ServerTiming.h b/src/buntime/web/performance/ServerTiming.h similarity index 100% rename from src/buntime/webcore/ServerTiming.h rename to src/buntime/web/performance/ServerTiming.h diff --git a/src/buntime/webcore/ServerTimingParser.cpp b/src/buntime/web/performance/ServerTimingParser.cpp similarity index 100% rename from src/buntime/webcore/ServerTimingParser.cpp rename to src/buntime/web/performance/ServerTimingParser.cpp diff --git a/src/buntime/webcore/ServerTimingParser.h b/src/buntime/web/performance/ServerTimingParser.h similarity index 100% rename from src/buntime/webcore/ServerTimingParser.h rename to src/buntime/web/performance/ServerTimingParser.h