mirror of
https://github.com/abraunegg/onedrive
synced 2026-03-14 14:35:46 +01:00
Add timestamp
* Add timestamp
This commit is contained in:
parent
200c32f1b4
commit
ef5b9a5fb2
1 changed files with 8 additions and 2 deletions
10
src/main.d
10
src/main.d
|
|
@ -1340,12 +1340,18 @@ int main(string[] cliArgs) {
|
|||
if (debugLogging) {addLogEntry("CurlEngine Pool Size POST Cleanup: " ~ to!string(curlEnginePoolLength()) , ["debug"]);}
|
||||
|
||||
// Display memory details before garbage collection
|
||||
if (displayMemoryUsage) displayMemoryUsagePreGC();
|
||||
if (displayMemoryUsage) {
|
||||
addLogEntry("Monitor Loop Count: " ~ to!string(monitorLoopFullCount));
|
||||
// Get the current time in the local timezone
|
||||
auto timeStamp = leftJustify(Clock.currTime().toString(), 28, '0');
|
||||
addLogEntry("Timestamp: " ~ to!string(timeStamp));
|
||||
// Display memory stats before GC cleanup
|
||||
displayMemoryUsagePreGC();
|
||||
}
|
||||
// Perform Garbage Collection
|
||||
GC.collect();
|
||||
// Return free memory to the OS
|
||||
GC.minimize();
|
||||
|
||||
// Display memory details after garbage collection
|
||||
if (displayMemoryUsage) displayMemoryUsagePostGC();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue