You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 20, 2026. It is now read-only.
For the sample application, a time profile indicated that the function 'fill' was located within the source file below, when it should be marked as within 'buffer.js'. This is likely a problem with serialization, and since much of the serialization code is shared, heap profiles may also be impacted.
const profiler = require('@google-cloud/profiler')
let count = 0;
function additionFunction() {
let a = 0
for (var i = 0; i < 10000; i++) {
a = a + 3;
a = a * a;
a = Math.sqrt(a);
}
setImmediate(additionFunction);
}
function fillBuffer() {
var buffer = new Buffer(500);
for (var k = 0; k < 1e2; k++)
buffer.fill(0);
setImmediate(fillBuffer);
}
profiler.start({
projectId: 'nolanmar-testappstandard',
logLevel: 5,
serviceContext: {
service: 'app-std',
version: '0'
},
});
additionFunction();
fillBuffer();