In HarmonyOS, native and managed apps can inject custom slices and counter trace points into the trace.
There are two types of ATrace events: system events and app events.
System events: This type of event is triggered only by HarmonyOS internals using libcutils. These events are grouped in categories, for example, ActivityManager (AM) and PackageManager (PM). Categories can be used to enable the group of events across several processes, without having to worry about which particular system process triggers these events.
App events: This type of event has the same semantics of system events. Unlike system events, however, they do not have any tag-filtering capability (all app events share the same tag ATRACE_TAG_APP) but can be enabled on a per-app basis.
HarmonyOS NEXT does not support this probe. HarmonyOS NEXT supports HiTrace categories to simulate atrace events.

At the UI level, these functions create slices and counters within the scope of a process track group.
