adobe-research / theseus

A pretty darn cool JavaScript debugger for Brackets
Other
1.34k stars 69 forks source link

High CPU usage on Mac OS X 10.8.4 #20

Open tiye opened 11 years ago

tiye commented 11 years ago

Brackets 29.. I like this extension, but every time I open it, the CPU usage shows more than 20% of CPU usage is used even I'm not debugging.

cpu

alltom commented 11 years ago

Can you try disabling the extension? Brackets does that for me all by itself because of tern, its JavaScript intelligence engine.

tiye commented 11 years ago

@alltom I used to remove that extension and reinstall when I need it. Hopefully the installing process is fast.

alltom commented 11 years ago

Interesting! Would you be able to collect a profile for me so I can see what the hot spots are on your computer?

Open the developer tools for your Brackets window: image

Then start a profile from the Profiles tab, stopping it after a few seconds: image

Then expand the tree to show where it's spending most time. This is a profile I just corrected, with some hot spots revealed that I'll look into first: image

It looks like you can also save them, so actually, do that and upload it here if you don't mind: image

Thanks for the report!

tiye commented 11 years ago

@alltom I recognize that in Chrome, but seems the version on web page is not the same. I only got these pictures: screen shot 2013-08-29 at 11 57 56 pm screen shot 2013-08-30 at 12 07 06 am screen shot 2013-08-30 at 12 08 06 am

And when I try debug my JS code: screen shot 2013-08-30 at 12 11 13 am

alltom commented 11 years ago

Thanks! I'll check this out and see what I can do.