mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-profile: remove frame overhead from max data length
Just so that we can potentially fit multiple of these per buffering in the capture writer.
This commit is contained in:
@ -414,7 +414,7 @@ sysprof_recording_add_file_fiber (gpointer user_data)
|
||||
|
||||
while (len > 0)
|
||||
{
|
||||
gsize to_write = MIN (len, 4096*8);
|
||||
gsize to_write = MIN (len, ((4096*8)-sizeof (SysprofCaptureFileChunk)));
|
||||
|
||||
if (!sysprof_capture_writer_add_file (add_file->writer,
|
||||
SYSPROF_CAPTURE_CURRENT_TIME,
|
||||
|
||||
Reference in New Issue
Block a user