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
When R does memory allocations internally, these are also logged with Rprofmem(). These entries have an empty call stack. Due to a bug in the code, the log of such entries lack newlines causing several entries to appear on the same line in the log file. For example,
The lack of newlines for some of the lines makes it unnecessarily hard/tricky to parse the Rprofmem log file.
Solution
Fixing this is very simple; it is just a matter of making sure there are no side effects, which it appears not to be (see below R-devel thread 'RProfmem output format').
The profmem package is backward and forward compatible with this bug / fix.
/cc @kalibera, if you still have a few brain cycles to spare after tweaking summaryRprof() (r72743), I'm cc:ing you in the hope that you can fix also this very old bug that seems to be forgotten about over and over.
The text was updated successfully, but these errors were encountered:
HenrikBengtsson
changed the title
BUG: Rprofmem() clutters up outputs when the call stack is empty
BUG: Rprofmem() clutters up output when the call stack is empty
May 29, 2017
UPDATE: This has now been patched in R-devel r72747, with the difference that the newline is no longer outputted by R_OutputStackTrace() itself but the calling functions. We now get:
Yeah, I don't much happened. It's about timing - getting the attention of R core members at the right time and their spare time. I might be worth bringing up again. Please note that I have a separate issue 'WISH: Rprofmem() overhaul' on this; #25.
(Extracted from Issue #25)
When R does memory allocations internally, these are also logged with
Rprofmem()
. These entries have an empty call stack. Due to a bug in the code, the log of such entries lack newlines causing several entries to appear on the same line in the log file. For example,The lack of newlines for some of the lines makes it unnecessarily hard/tricky to parse the Rprofmem log file.
Solution
Fixing this is very simple; it is just a matter of making sure there are no side effects, which it appears not to be (see below R-devel thread 'RProfmem output format').
With the above patch, we get:
See also
profmem
package is backward and forward compatible with this bug / fix./cc @kalibera, if you still have a few brain cycles to spare after tweaking
summaryRprof()
(r72743), I'm cc:ing you in the hope that you can fix also this very old bug that seems to be forgotten about over and over.The text was updated successfully, but these errors were encountered: