cascode is a user on glitch.social. You can follow them or interact with them if you have an account anywhere in the fediverse.

Protip:

When designing a user interface, imagine some old woman using it, say Margaret Hamilton, and she's clicking your app's buttons and saying to you, as old people do,

"Young whippersnapper, when I was your age, I sent 24 people to the ACTUAL MOON with my software in 4K of RAM and here I am clicking your button and it takes ten seconds to load a 50 megabyte video ad and then it crashes

I'm not even ANGRY with you, I'm just disappointed."

@er1n this is both one of my biggest agony points in UI design and one reason I haven't released SotF :P I can lag it in some cases and it really bugs me because I can't figure out why, not even with flame graphs and profiler timelines
cascode @cascode

@LottieVixen @ninjawedding @er1n profiler output visualization tool, helps you see what functions and system calls your program is spending the most time on

this, or similar (like what erin linked) :
brendangregg.com/FlameGraphs/c

Β· Web Β· 0 Β· 1

@cascode @LottieVixen @ninjawedding the difference with what i posted is that it's very good for monitoring infrequent events

@cascode @LottieVixen @er1n yep, pretty much that (I got weird lag on this status 🀷 )

first image is an example of a flame graph from the QML profiler; you can see that the majority of total time was spent updating a binding (and, amusingly, there's no sub-operation inside it). you can then look at the timeline to see what that looks like over time, which is useful for analyzing things like "what's causing jank" etc and getting an idea of what that 51.7% of time spent means in terms of frame budget

FlameScope does look cool, I just don't know how to integrate it yet :P
@er1n oh huh

that could make it really easy then πŸ€”

actually I think you told me about this before lol

@ninjawedding @cascode @er1n

oh heck this looks awesome, also erm....the delay may be toot.cat fed issues....*sigh*

@LottieVixen @cascode @er1n yeah the tools are great

though tbh similar tools have been in web browsers for quite a while too :)

actually I'd say that browsers have probably some of the best profiling tools out there right now? next to maybe like Instruments, bespoke profiling tools in game engines, and Telemetry, which I have never used but have seen and it looks sick

@ninjawedding @LottieVixen @cascode telemetry is theoretically amazing but it's also probably unfathomably expensive, like so expensive that they just say "contact us if you're interested"

@LottieVixen @er1n @cascode I think you would do fine -- Telemetry's data comes from hooks you write into the code, so they work a lot like print statements

(or so I hear)
@er1n @LottieVixen @cascode heh yeah -- when I first saw Telemetry in use I was like "oh how much could this be? certainly no worse than CLion"

lol me