Re:How to Pick a Programming Language (2002)
by spion on Monday October 02, 2023 @12:15AM
(#37733923)
For TypeScript (browser, chrome), it should be in the devtools under the Performance tab, (backend) is node --prof and --prof-process
Re:How to Pick a Programming Language (2002)
by gleenn on Monday October 02, 2023 @01:51AM
(#37734442)
ruby-prof for Ruby and VisualVM or the profiler built into IntelliJ are all pretty good.
Re:How to Pick a Programming Language (2002)
by recursivecaveat on Monday October 02, 2023 @02:54AM
(#37734780)
To answer your first question: its software to monitor the execution of a program and produce a mapping from resource usage (usually time-spent) to the source code. This is useful to find the most expensive portions of your application so you can concentrate improvements on them. How exactly to use one would be language-specific, but the general flow is just to loop profiling and addressing problematic code until you're happy with the results. Just gut-checking which exact parts of a program are slow is really hard without prior profiling or very detailed logging (which is a kind of profiling), so they're very important to guide efforts.
If they’re language specific, then for typescript, Ruby, and Kotlin.