mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 23:51:06 +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)
|
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,
|
if (!sysprof_capture_writer_add_file (add_file->writer,
|
||||||
SYSPROF_CAPTURE_CURRENT_TIME,
|
SYSPROF_CAPTURE_CURRENT_TIME,
|
||||||
|
|||||||
Reference in New Issue
Block a user