Yet another FeatReq I guess 😉 -
The Logs show only basic info like JS Function executed successfully
Request to add execution time (elapsed) in ms
This is especially useful to quickly identify bottlenecks or measure performance improvements between 2 code alternatives.
Temp workaround: add explicit code for it in the function(s) - e.g. see https://stackoverflow.com/questions/313893/how-to-measure-time-taken-by-a-function-to-execute but...
this doesn't work for async functions.
For those I am using the below but would be good if handled in the Logs / debugger:
test: async () => {
var start = performance.now();
await JS.myAsyncFunction();
var stop = performance.now();
showAlert(`${stop - start} milliseconds`);
},