Files
cgrates/utils
ionutboangiu 1c490a9020 Revise memory profiling implementation
- merge StopChanMemProf with StopMemoryProfiling
- remove fileMEM and stopMemProf from struct and constructors
- add separate mutex for memory profiling, ensure thread safety
- handle all significant errors
- log error if StopMemoryProfiling fails during CoreS Shutdown
- ignore errors if profiling inactive in Shutdown and deferred Stop
- move validations inside V1 functions
- return error if StartMemoryProfiling already started
- return error if StopMemoryProfiling already stopped or never started
- close profiling loop on error, not the cgr-engine
- StopMemoryProfiling closes channel and profiling loop writes final profile
- rename Path to DirPath for mandatory field error
- rename memprof_nrfiles flag to memprof_maxfiles
- increase default memprof_interval
- consider MaxFiles <= 0 as unlimited
- move memory profiling logic after starting services
- use CoreService Start/StopMemoryProfiling in main
- remove final memory profile block (created by deferred Stop)
- convert MemProfiling to method on CoreService and rename to profileMemory
- use Ticker for recurrent actions instead of Timer
- compute mem_final.prof full path in StartMemoryProfiling
- suffix profile files with current time instead of numbers
- update dispatcher methods after changes
- move MemoryPrf from utils to cores, rename to MemoryProfilingParams
- add logs for starting/stopping profiling
2024-08-02 09:35:36 +02:00
..
2021-03-26 13:46:25 +01:00
2021-08-26 16:45:37 +02:00
2023-05-31 10:23:12 +02:00
2023-05-31 10:23:12 +02:00
2021-01-11 10:57:44 +01:00
2021-01-07 18:15:35 +01:00
2021-11-01 13:49:33 +02:00
2021-03-26 13:46:25 +01:00
2021-04-02 13:42:24 +02:00
2021-02-16 18:18:32 +01:00
2023-02-24 16:50:48 +01:00
2023-09-12 18:10:02 +02:00
2023-02-27 09:14:45 +01:00
2022-10-19 09:43:33 +02:00
2023-11-08 17:10:13 +01:00
2023-05-31 10:23:12 +02:00
2023-05-31 10:23:12 +02:00
2023-05-31 10:23:12 +02:00
2022-11-11 13:43:51 +01:00
2021-03-26 13:46:25 +01:00
2024-02-27 16:28:48 +01:00
2021-01-11 10:57:44 +01:00
2021-03-26 13:46:25 +01:00
2023-05-31 10:23:12 +02:00
2023-05-31 10:23:12 +02:00
2023-05-31 10:23:12 +02:00
2023-05-31 10:23:12 +02:00
2023-05-31 10:23:12 +02:00