bloomberg / memray

Memray is a memory profiler for Python
https://bloomberg.github.io/memray/
Apache License 2.0
13.36k stars 397 forks source link

Flame graph time axis offset (perhaps due to timezone) #591

Closed braingram closed 5 months ago

braingram commented 6 months ago

Is there an existing issue for this?

Current Behavior

I generated a profile and flamegraph on a remote machine (that uses UTC). The flamegraph page stats include:

Start time: 2024-05-03 12:35:24.695000
End time: 2024-05-06 02:40:31.130000

However, when I view the page on my laptop (ET) the first point on the graph reports a time of May 3rd, 2024, 08:35.

Is there an option to set maybe the timezone of the graph so it will match the times reported in the stats (and in my case times from other logs generated by the program, which are all in the system UTC time)?

Thanks and let me know if any more information is helpful. Also, memray is awesome :)

Expected Behavior

No response

Steps To Reproduce

I think this could be reproduced by generating a log on a system using UTC then viewing it on a system uses a different timezone.

Memray Version

1.12.0

Python Version

3.12

Operating System

Linux

Anything else?

No response

vitimm144 commented 5 months ago

I can try to help on this issue