Skip to Content
Learning TypeScript 2.x - Second Edition
book

Learning TypeScript 2.x - Second Edition

by Remo H. Jansen
April 2018
Beginner content levelBeginner
536 pages
13h 21m
English
Packt Publishing
Content preview from Learning TypeScript 2.x - Second Edition

Memory performance analysis

When we declare a variable, it is allocated in the RAM. Sometime after, the variable is out of the scope; it is cleared from memory by the garbage collector. Sometimes, we can generate a scenario in which a variable never goes out of scope. If the variable never goes out of scope, it will never be cleared from the memory. This can eventually lead to some serious memory leaking issues. A memory leak is the continuous loss of available memory.

When dealing with memory leaks, we can take advantage of the Google Chrome developer tools to identify the cause of the problem with ease.

The first thing that we might wonder is whether our application has memory leaks. We can find out by visiting the timeline and clicking ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering TypeScript - Fourth Edition

Mastering TypeScript - Fourth Edition

Nathan Rozentals
Learning TypeScript

Learning TypeScript

Josh Goldberg
TypeScript for Beginners

TypeScript for Beginners

Bharath Thippireddy

Publisher Resources

ISBN: 9781788391474Supplemental Content