Hey 👋 I've been trying to profile my

Hey 👋 I've been trying to profile my worker locally using the chrome perf tooling but the data coming back seems wildly incorrect (assuming because workers doesn't allow for accurate timings). Is there anything I can do locally to make these profiles more accurate? e.g - Since the clock seems to update on IO i was considering doing a fetch request to a worker every 10ms to roughly update the clock but the outbound limit is too low.
2 Replies
petebd
petebd•6mo ago
Well it is actually on every async operation, not just fetches, I believe. So perhaps just await a promise that is resolved with a setTimeout?
Luke
LukeOP•6mo ago
ok thanks I'll try that!

Did you find this page helpful?