mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-16 16:12:14 +11:00
⚡ more memory usage info
This commit is contained in:
parent
dd66144a3b
commit
7145e66103
1 changed files with 2 additions and 1 deletions
3
main.cpp
3
main.cpp
|
|
@ -59,7 +59,8 @@ int main(int argc, char **argv)
|
|||
//Loading users from users.json
|
||||
bank.Load();
|
||||
size_t num_of_logs = bank.NumOfLogs();
|
||||
std::cout << "\n\nLoaded " << bank.NumOfUsers() << " Users"
|
||||
size_t num_of_users = bank.NumOfUsers();
|
||||
std::cout << "\n\nLoaded " << num_of_users << " Users : " << (float)(sizeof(User) * num_of_users) / 1048576 << "Mb"
|
||||
<< "\nLoaded " << num_of_logs << " Logs : " << (float)(num_of_logs * (90 + 80 + (max_name_size * 2))) / 1048576 << "Mb" //90:string representation(heap), sizeof(Transaction), max_name_size*2:filled to&from(heap)
|
||||
<< "\nLoaded " << bank.SumBal() << " CSH"
|
||||
<< std::endl; //flushing before EventLoop
|
||||
|
|
|
|||
Loading…
Reference in a new issue