MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / UpdateStatusBar

Method UpdateStatusBar

DebugView++/MainFrame.cpp:371–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369}
370
371void CMainFrame::UpdateStatusBar()
372{
373 auto isearch = GetView().GetHighlightText();
374 std::wstring search = wstringbuilder() << L"Searching: \"" << isearch << L"\"";
375 UISetText(ID_DEFAULT_PANE,
376 isearch.empty() ? (m_pLocalReader ? L"Ready" : L"Paused") : search.c_str());
377 UISetText(ID_SELECTION_PANE, GetSelectionInfoText(L"Selected", GetView().GetSelectedRange()).c_str());
378 UISetText(ID_VIEW_PANE, GetSelectionInfoText(L"View", GetView().GetViewRange()).c_str());
379 UISetText(ID_LOGFILE_PANE, GetSelectionInfoText(L"Log", GetLogFileRange()).c_str());
380
381 size_t memoryUsage = ProcessInfo::GetPrivateBytes() - m_initialPrivateBytes;
382 if (memoryUsage < 0)
383 memoryUsage = 0;
384 UISetText(ID_MEMORY_PANE, FormatBytes(memoryUsage).c_str());
385}
386
387void CMainFrame::ProcessLines(const Lines& lines)
388{

Callers

nothing calls this directly

Calls 5

FormatBytesFunction · 0.85
GetHighlightTextMethod · 0.80
GetSelectedRangeMethod · 0.80
GetViewRangeMethod · 0.80
c_strMethod · 0.45

Tested by

no test coverage detected