MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / ApplyFilters

Method ApplyFilters

WinArk/EtwView.cpp:762–776  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

760}
761
762void CEtwView::ApplyFilters(const FilterConfiguration& config) {
763 auto& tm = GetFrame()->GetTraceManager();
764 tm.RemoveAllFilters();
765 for (int i = 0; i < config.GetFilterCount(); i++) {
766 auto desc = config.GetFilter(i);
767 ATLASSERT(desc);
768 auto filter = FilterFactory::CreateFilter(desc->Name.c_str(), desc->Compare,
769 desc->Parameters.c_str(),desc->Action);
770 ATLASSERT(filter);
771 if (filter) {
772 filter->Enable(desc->Enabled);
773 tm.AddFilter(filter);
774 }
775 }
776}

Callers

nothing calls this directly

Calls 5

RemoveAllFiltersMethod · 0.80
GetFilterCountMethod · 0.45
GetFilterMethod · 0.45
EnableMethod · 0.45
AddFilterMethod · 0.45

Tested by

no test coverage detected