sentry-cocoa icon indicating copy to clipboard operation
sentry-cocoa copied to clipboard

Logging the application's ram state while recording session replay

Open barisyild opened this issue 1 year ago • 3 comments

Problem Statement

The memory tab is not available when viewing Session Replay.

Solution Brainstorm

Seeing the ram usage on Session Replay can be useful for identifying memory leak issues. like javascript canvas replay.

Are you willing to submit a PR?

No response

barisyild avatar Aug 06 '24 21:08 barisyild

Looks like sentry already recording memory usage, i think only needs implement for replay.

https://github.com/getsentry/sentry-cocoa/blob/3297d6e29cd37151f68e9c605aea8b44e5e432cb/Sources/Sentry/SentryMetricProfiler.mm#L176-L177

barisyild avatar Aug 06 '24 21:08 barisyild

Yes, we currently only attach the memory usage info to profiles. @brustolin should know where to put it for SRs 😃.

philipphofmann avatar Aug 07 '24 06:08 philipphofmann

Thanks for the suggestion @barisyild . We will look into it.

brustolin avatar Aug 07 '24 08:08 brustolin