Profiling Bangle apps (sort of) #5332
Unanswered
espruino-discuss2
asked this question in
Bangle.js
Replies: 1 comment
-
Posted at 2022-10-31 by @gfwilliams That sounds like a neat idea... You might be hitting the issue that if |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2022-10-29 by @halemmerich
While trying to find methods using a lot of time I thought of automatically wrapping all functions in an object to get some statistics. I came up with this: https://gist.github.com/halemmerich/a2e90fc2ea1aefd2bed8a20d3fb3bdf0
This does not seem to work for things like
Bangle.#ontouch
. While I can doObject.keys(Bangle.["#ontouch"]).length
from the IDE terminal to detect if there is an array of functions in there, the code in the gist line 9 does not seem get the array. Generally the recursion path is not taken, as if everything is type function.Ideas anyone?
Beta Was this translation helpful? Give feedback.
All reactions