MCPcopy Create free account
hub / github.com/VerySleepy/verysleepy / CallstackView

Method CallstackView

src/wxProfilerGUI/CallstackView.cpp:79–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77END_EVENT_TABLE()
78
79CallstackView::CallstackView(wxWindow *parent,Database *_database)
80: wxWindow(parent,-1), database(_database), callstackActive(0), currSymbol(NULL), itemSelected(~0u)
81{
82 listCtrl = new wxListCtrl(this,LIST_CTRL,wxDefaultPosition,wxDefaultSize,wxLC_REPORT);
83 setupColumn(COL_NAME, 170, _T("Name"));
84 setupColumn(COL_MODULE, 70, _T("Module"));
85 setupColumn(COL_SOURCEFILE, 270, _T("Source File"));
86 setupColumn(COL_SOURCELINE, 40, _T("Source Line"));
87 setupColumn(COL_ADDRESS, 100, _T("Address"));
88
89 toolBar = new wxAuiToolBar(this,-1);
90 toolBar->AddTool(TOOL_PREV,"-",LoadPngResource(L"button_prev", this),_T("Previous"));
91 toolBar->AddTool(TOOL_NEXT,"+",LoadPngResource(L"button_next", this),_T("Next"));
92 toolBar->AddTool(TOOL_EXPORT_CSV,"CSV",LoadPngResource(L"button_exportcsv", this),_T("Export as CSV"));
93 toolRange = new wxStaticTextTransparent(toolBar,-1);
94 toolBar->AddControl(toolRange);
95
96 toolBar->Realize();
97
98 wxBoxSizer *sizer = new wxBoxSizer( wxVERTICAL );
99 sizer->Add(toolBar,wxSizerFlags(0).Expand());
100 sizer->Add(listCtrl,wxSizerFlags(1).Expand());
101 SetSizer(sizer);
102 sizer->SetSizeHints(this);
103}
104
105void CallstackView::OnSelected(wxListEvent& event)
106{

Callers

nothing calls this directly

Calls 3

LoadPngResourceFunction · 0.85
AddControlMethod · 0.80
AddMethod · 0.80

Tested by

no test coverage detected