mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
ProfileViewer: Highlight instructions with >0 samples in yellow
This commit is contained in:
@@ -103,6 +103,13 @@ GUI::Model::ColumnMetadata DisassemblyModel::column_metadata(int column) const
|
||||
GUI::Variant DisassemblyModel::data(const GUI::ModelIndex& index, Role role) const
|
||||
{
|
||||
auto& insn = m_instructions[index.row()];
|
||||
|
||||
if (role == Role::BackgroundColor) {
|
||||
if (insn.event_count > 0)
|
||||
return Color(Color::Yellow);
|
||||
return {};
|
||||
}
|
||||
|
||||
if (role == Role::Display) {
|
||||
if (index.column() == Column::SampleCount) {
|
||||
if (m_profile.show_percentages())
|
||||
|
||||
Reference in New Issue
Block a user