File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { getWorkspaceProxies } from "api/api"
3
3
import { Region } from "api/typesGenerated"
4
4
import axios from "axios"
5
5
import { useDashboard } from "components/Dashboard/DashboardProvider"
6
+ import { PerformanceObserver } from "perf_hooks"
6
7
import {
7
8
createContext ,
8
9
FC ,
@@ -85,6 +86,15 @@ export const ProxyProvider: FC<PropsWithChildren> = ({ children }) => {
85
86
if ( ! proxiesResp ) {
86
87
return
87
88
}
89
+
90
+ window . performance . getEntries ( ) . forEach ( ( entry ) => {
91
+ console . log ( entry )
92
+ } )
93
+ const observer = new PerformanceObserver ( ( list , observer ) => {
94
+ console . log ( "performance observer" , list , observer )
95
+ } )
96
+
97
+ observer . observe ( { entryTypes : [ "http2" , "http" ] } )
88
98
} , [ proxiesResp ] )
89
99
90
100
const setAndSaveProxy = (
You can’t perform that action at this time.
0 commit comments