Web page is really slow in Chrome when inspector is open but *not* profiling
up vote
0
down vote
favorite
In my Angular application, after introducing some more heavy usage of ngxs, I see my application has been come very slow when the inspector is open, but not when the profiler is running.
This has made it a little hard to figure out what's going on, but using the old conosle.profile
method (adding an entry to Chrome's old profiler), I've narrowed it down a little - but I'm not at all more informed now than I was - just more confused.
So here's to hoping someone here can help me out!
I have some screenshots from the profiling to share, but unfortunately not much else.
First, a screenshot from the profile chart:
As you can see, there's a looooong time, where apparently nothing is really happening. Note in the console, that the bottom method (startObserving
) only takes .12ms (according to console.time
)
Going up the tree a few steps, we find Handsontable
- this is what the function looks like, and some timings associated:
function Handsontable(rootElement, userSettings) {
console.time('Handsontable total time');
console.time('Handsontable create instance');
var instance = new _core2.default(rootElement, userSettings || {}, _rootInstance.rootInstanceSymbol);
console.timeEnd('Handsontable create instance');
console.time('Handsontable init instance');
instance.init();
console.timeEnd('Handsontable init instance');
console.timeEnd('Handsontable total time');
return instance;
}
// Timer outputs:
// This looks OK
Handsontable create instance: 10.864990234375ms
// Also this
Handsontable init instance: 1462.807861328125ms
// Wow, what??
Handsontable total time: 52664.875ms
It looks like the 2 methods called in the Handsontable
constructor/function have a total run-time of <1500ms, but the total execution time is more than 52 seconds.
What in the world can be happening in those ~50 seconds of - as I see it - idle time?
Any help is really welcome, hints, suggestions, help to better debug!
Note: In Firefox, this is not an issue. I've tried in Chromium 67, 68 and 69 too - same issue. It's a problem in Chrome across all platforms (tested in Windows 10, Ubuntu 16,17 and MacOS latest-1,latest)
google-chrome rxjs google-chrome-devtools ngxs
add a comment |
up vote
0
down vote
favorite
In my Angular application, after introducing some more heavy usage of ngxs, I see my application has been come very slow when the inspector is open, but not when the profiler is running.
This has made it a little hard to figure out what's going on, but using the old conosle.profile
method (adding an entry to Chrome's old profiler), I've narrowed it down a little - but I'm not at all more informed now than I was - just more confused.
So here's to hoping someone here can help me out!
I have some screenshots from the profiling to share, but unfortunately not much else.
First, a screenshot from the profile chart:
As you can see, there's a looooong time, where apparently nothing is really happening. Note in the console, that the bottom method (startObserving
) only takes .12ms (according to console.time
)
Going up the tree a few steps, we find Handsontable
- this is what the function looks like, and some timings associated:
function Handsontable(rootElement, userSettings) {
console.time('Handsontable total time');
console.time('Handsontable create instance');
var instance = new _core2.default(rootElement, userSettings || {}, _rootInstance.rootInstanceSymbol);
console.timeEnd('Handsontable create instance');
console.time('Handsontable init instance');
instance.init();
console.timeEnd('Handsontable init instance');
console.timeEnd('Handsontable total time');
return instance;
}
// Timer outputs:
// This looks OK
Handsontable create instance: 10.864990234375ms
// Also this
Handsontable init instance: 1462.807861328125ms
// Wow, what??
Handsontable total time: 52664.875ms
It looks like the 2 methods called in the Handsontable
constructor/function have a total run-time of <1500ms, but the total execution time is more than 52 seconds.
What in the world can be happening in those ~50 seconds of - as I see it - idle time?
Any help is really welcome, hints, suggestions, help to better debug!
Note: In Firefox, this is not an issue. I've tried in Chromium 67, 68 and 69 too - same issue. It's a problem in Chrome across all platforms (tested in Windows 10, Ubuntu 16,17 and MacOS latest-1,latest)
google-chrome rxjs google-chrome-devtools ngxs
Could be a bug in Chrome so I suggest checking the older versions.
– wOxxOm
Nov 8 at 11:31
One of my colleagues suggested this as well, but seeing that 67 is from april, and this issue hasn't been aroung for more than a few months, I stopped pursuing that path
– Thor Jacobsen
Nov 8 at 11:38
After digging a little deeper, it seems that if I replace my ngxs store with a simple class with a BehaviourSubject, everything works just fine. So I guess there's an issue somewhere in ngxs
– Thor Jacobsen
Nov 8 at 13:40
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
In my Angular application, after introducing some more heavy usage of ngxs, I see my application has been come very slow when the inspector is open, but not when the profiler is running.
This has made it a little hard to figure out what's going on, but using the old conosle.profile
method (adding an entry to Chrome's old profiler), I've narrowed it down a little - but I'm not at all more informed now than I was - just more confused.
So here's to hoping someone here can help me out!
I have some screenshots from the profiling to share, but unfortunately not much else.
First, a screenshot from the profile chart:
As you can see, there's a looooong time, where apparently nothing is really happening. Note in the console, that the bottom method (startObserving
) only takes .12ms (according to console.time
)
Going up the tree a few steps, we find Handsontable
- this is what the function looks like, and some timings associated:
function Handsontable(rootElement, userSettings) {
console.time('Handsontable total time');
console.time('Handsontable create instance');
var instance = new _core2.default(rootElement, userSettings || {}, _rootInstance.rootInstanceSymbol);
console.timeEnd('Handsontable create instance');
console.time('Handsontable init instance');
instance.init();
console.timeEnd('Handsontable init instance');
console.timeEnd('Handsontable total time');
return instance;
}
// Timer outputs:
// This looks OK
Handsontable create instance: 10.864990234375ms
// Also this
Handsontable init instance: 1462.807861328125ms
// Wow, what??
Handsontable total time: 52664.875ms
It looks like the 2 methods called in the Handsontable
constructor/function have a total run-time of <1500ms, but the total execution time is more than 52 seconds.
What in the world can be happening in those ~50 seconds of - as I see it - idle time?
Any help is really welcome, hints, suggestions, help to better debug!
Note: In Firefox, this is not an issue. I've tried in Chromium 67, 68 and 69 too - same issue. It's a problem in Chrome across all platforms (tested in Windows 10, Ubuntu 16,17 and MacOS latest-1,latest)
google-chrome rxjs google-chrome-devtools ngxs
In my Angular application, after introducing some more heavy usage of ngxs, I see my application has been come very slow when the inspector is open, but not when the profiler is running.
This has made it a little hard to figure out what's going on, but using the old conosle.profile
method (adding an entry to Chrome's old profiler), I've narrowed it down a little - but I'm not at all more informed now than I was - just more confused.
So here's to hoping someone here can help me out!
I have some screenshots from the profiling to share, but unfortunately not much else.
First, a screenshot from the profile chart:
As you can see, there's a looooong time, where apparently nothing is really happening. Note in the console, that the bottom method (startObserving
) only takes .12ms (according to console.time
)
Going up the tree a few steps, we find Handsontable
- this is what the function looks like, and some timings associated:
function Handsontable(rootElement, userSettings) {
console.time('Handsontable total time');
console.time('Handsontable create instance');
var instance = new _core2.default(rootElement, userSettings || {}, _rootInstance.rootInstanceSymbol);
console.timeEnd('Handsontable create instance');
console.time('Handsontable init instance');
instance.init();
console.timeEnd('Handsontable init instance');
console.timeEnd('Handsontable total time');
return instance;
}
// Timer outputs:
// This looks OK
Handsontable create instance: 10.864990234375ms
// Also this
Handsontable init instance: 1462.807861328125ms
// Wow, what??
Handsontable total time: 52664.875ms
It looks like the 2 methods called in the Handsontable
constructor/function have a total run-time of <1500ms, but the total execution time is more than 52 seconds.
What in the world can be happening in those ~50 seconds of - as I see it - idle time?
Any help is really welcome, hints, suggestions, help to better debug!
Note: In Firefox, this is not an issue. I've tried in Chromium 67, 68 and 69 too - same issue. It's a problem in Chrome across all platforms (tested in Windows 10, Ubuntu 16,17 and MacOS latest-1,latest)
google-chrome rxjs google-chrome-devtools ngxs
google-chrome rxjs google-chrome-devtools ngxs
asked Nov 8 at 11:27
Thor Jacobsen
4,89511821
4,89511821
Could be a bug in Chrome so I suggest checking the older versions.
– wOxxOm
Nov 8 at 11:31
One of my colleagues suggested this as well, but seeing that 67 is from april, and this issue hasn't been aroung for more than a few months, I stopped pursuing that path
– Thor Jacobsen
Nov 8 at 11:38
After digging a little deeper, it seems that if I replace my ngxs store with a simple class with a BehaviourSubject, everything works just fine. So I guess there's an issue somewhere in ngxs
– Thor Jacobsen
Nov 8 at 13:40
add a comment |
Could be a bug in Chrome so I suggest checking the older versions.
– wOxxOm
Nov 8 at 11:31
One of my colleagues suggested this as well, but seeing that 67 is from april, and this issue hasn't been aroung for more than a few months, I stopped pursuing that path
– Thor Jacobsen
Nov 8 at 11:38
After digging a little deeper, it seems that if I replace my ngxs store with a simple class with a BehaviourSubject, everything works just fine. So I guess there's an issue somewhere in ngxs
– Thor Jacobsen
Nov 8 at 13:40
Could be a bug in Chrome so I suggest checking the older versions.
– wOxxOm
Nov 8 at 11:31
Could be a bug in Chrome so I suggest checking the older versions.
– wOxxOm
Nov 8 at 11:31
One of my colleagues suggested this as well, but seeing that 67 is from april, and this issue hasn't been aroung for more than a few months, I stopped pursuing that path
– Thor Jacobsen
Nov 8 at 11:38
One of my colleagues suggested this as well, but seeing that 67 is from april, and this issue hasn't been aroung for more than a few months, I stopped pursuing that path
– Thor Jacobsen
Nov 8 at 11:38
After digging a little deeper, it seems that if I replace my ngxs store with a simple class with a BehaviourSubject, everything works just fine. So I guess there's an issue somewhere in ngxs
– Thor Jacobsen
Nov 8 at 13:40
After digging a little deeper, it seems that if I replace my ngxs store with a simple class with a BehaviourSubject, everything works just fine. So I guess there's an issue somewhere in ngxs
– Thor Jacobsen
Nov 8 at 13:40
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53206813%2fweb-page-is-really-slow-in-chrome-when-inspector-is-open-but-not-profiling%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Could be a bug in Chrome so I suggest checking the older versions.
– wOxxOm
Nov 8 at 11:31
One of my colleagues suggested this as well, but seeing that 67 is from april, and this issue hasn't been aroung for more than a few months, I stopped pursuing that path
– Thor Jacobsen
Nov 8 at 11:38
After digging a little deeper, it seems that if I replace my ngxs store with a simple class with a BehaviourSubject, everything works just fine. So I guess there's an issue somewhere in ngxs
– Thor Jacobsen
Nov 8 at 13:40