mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-05 22:40:16 +01:00
added memory allocated
This commit is contained in:
@@ -1426,11 +1426,17 @@ void AC_MainWindow::updateFrame(QImage img) {
|
||||
QString frame_string;
|
||||
QTextStream frame_stream(&frame_string);
|
||||
if(!recording) {
|
||||
frame_stream << "(Current/Total Frames/Seconds) - (" << frame_index << "/" << video_frames << "/" << (unsigned long)(frame_index/video_fps) << ") ";
|
||||
frame_stream << "(Current/Total Frames/Seconds) - (" << frame_index << "/" << video_frames << "/" << (unsigned long)(frame_index/video_fps) << ") - ";
|
||||
|
||||
unsigned long mem = ac::calculateMemory();
|
||||
frame_stream << "Memory Allocated: " << ((mem > 0) ? (mem/1024/1024) : 0) << " MB - " << " Initalized: " << ac::all_objects.size() << " - Allocated: " << ac::getCurrentAllocatedFrames() << "\n";
|
||||
|
||||
} else {
|
||||
struct stat buf;
|
||||
stat(video_file_name.toStdString().c_str(), &buf);
|
||||
frame_stream << "(Current/Total Frames/Seconds/Size) - (" << frame_index << "/" << video_frames << "/" << (unsigned int)(frame_index/video_fps) << "/" << ((buf.st_size/1000)/1000) << " MB) ";
|
||||
frame_stream << "(Current/Total Frames/Seconds/Size) - (" << frame_index << "/" << video_frames << "/" << (unsigned int)(frame_index/video_fps) << "/" << ((buf.st_size/1000)/1000) << " MB) - ";
|
||||
unsigned long mem = ac::calculateMemory();
|
||||
frame_stream << "Memory Allocated: " << ((mem > 0) ? (mem/1024/1024) : 0) << " MB - " << "Initalized: " << ac::all_objects.size() << " - Allocated: " << ac::getCurrentAllocatedFrames() << "\n";
|
||||
}
|
||||
if(programMode == MODE_VIDEO) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user