Compute the OR of all tools' global_events + local_events. This is used for the fast-path atomic mask to skip monitoring when no events are registered at all.
(&self)
| 115 | /// This is used for the fast-path atomic mask to skip monitoring |
| 116 | /// when no events are registered at all. |
| 117 | pub fn combined_events(&self) -> u32 { |
| 118 | let global = self.global_events.iter().fold(0, |acc, &e| acc | e); |
| 119 | let local = self.local_events.values().fold(0, |acc, &e| acc | e); |
| 120 | global | local |
| 121 | } |
| 122 | |
| 123 | /// Compute the events that apply to a specific code object: |
| 124 | /// global events OR'd with local events registered for that code. |
no test coverage detected