What is a break in the flame diagram of a Chrome devtools profile

Here is my javascript code, it is pretty simple:

console.profile();
var count = 1000;
var fn1 = function () {
    for (var i = 0; i < count; i++) {
        console.log("THIS IS FN1");
    }
}

var fn2 = function () {
    for (var i = 0; i < count; i++) {
        console.log("THIS IS FN2");
    }
    fn1();
}

fn2();
console.profileEnd();

and this is my screenshot of my profile:

enter image description here

Why is there a space in the image, like my black rectangle?

What does this gap mean?

+4
source share
1 answer

fn2 fn1, . JS 1 (100% ), , .

fn2 . JS , JS, , , . , , , , .

+9

All Articles