ProfilingManager.AddProfilingTriggers(IList<ProfilingTrigger>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Register the provided list of triggers for this process.
[Android.Runtime.Register("addProfilingTriggers", "(Ljava/util/List;)V", "", ApiSince=36)]
public void AddProfilingTriggers(System.Collections.Generic.IList<Android.OS.ProfilingTrigger> triggers);
[<Android.Runtime.Register("addProfilingTriggers", "(Ljava/util/List;)V", "", ApiSince=36)>]
member this.AddProfilingTriggers : System.Collections.Generic.IList<Android.OS.ProfilingTrigger> -> unit
Parameters
- triggers
- IList<ProfilingTrigger>
- Attributes
Remarks
Register the provided list of triggers for this process.
Profiling triggers are system events that an app can register interest in, and then receive profiling data when any of the registered triggers occur. There is no guarantee that these triggers will be filled. Results, if available, will be delivered only to a global listener added using #registerForAllProfilingResults
.
Only one of each trigger type can be added at a time. <ul> <li>If the provided list contains a trigger type that is already registered then the new one will replace the existing one.</li> <li>If the provided list contains more than one trigger object for a trigger type then only one will be kept.</li> </ul>
Apps can define their own per-trigger rate limiting to help ensure they receive results aligned with their needs. More details can be found at ProfilingTrigger.Builder#setRateLimitingPeriodHours
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.