In the case if code works slow and consumes much memory, developer can use profiling in the devtools to have a clue.
But when you have a massive codebase, with a lot