Skip to content

Commit

Permalink
chunking on pprof merge request
Browse files Browse the repository at this point in the history
  • Loading branch information
akvlad committed Aug 26, 2024
1 parent d13503f commit b6a4c3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyroscope/pyroscope.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ const selectMergeProfile = async (req, res) => {
)
const approxData = approx.data.data[0]
logger.debug(`Approximate size: ${approxData.size} bytes, profiles count: ${approxData.count}`)
const chunksCount = Math.max(Math.ceil(approxData.size / (50 * 1024)), 1)
const chunksCount = Math.max(Math.ceil(approxData.size / (50 * 1024 * 1024)), 1)
logger.debug(`Request is processed in: ${chunksCount} chunks`)
const chunkSize = Math.ceil(approxData.count / chunksCount)
const promises = []
Expand Down

0 comments on commit b6a4c3f

Please sign in to comment.