Skip to content

Commit 8ad987a

Browse files
committed
Fix category names for perfetto api
Some category names were not matching the corresponding atrace category names. Test: Manual Bug: 303199244 Flag: EXEMPT bug fix Change-Id: I301f93494e0141dae19b7859cb8fe81c3a83f43e
1 parent c98bf60 commit 8ad987a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

libs/tracing_perfetto/tracing_perfetto_internal.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,16 @@
1414
* limitations under the License.
1515
*/
1616

17+
// Should match the definitions in: frameworks/native/cmds/atrace/atrace.cpp
1718
#define FRAMEWORK_CATEGORIES(C) \
1819
C(always, "always", "Always category") \
19-
C(graphics, "graphics", "Graphics category") \
20+
C(graphics, "gfx", "Graphics category") \
2021
C(input, "input", "Input category") \
2122
C(view, "view", "View category") \
2223
C(webview, "webview", "WebView category") \
2324
C(windowmanager, "wm", "WindowManager category") \
2425
C(activitymanager, "am", "ActivityManager category") \
25-
C(syncmanager, "syncmanager", "SyncManager category") \
26+
C(syncmanager, "sm", "SyncManager category") \
2627
C(audio, "audio", "Audio category") \
2728
C(video, "video", "Video category") \
2829
C(camera, "camera", "Camera category") \
@@ -33,7 +34,7 @@
3334
C(rs, "rs", "RS category") \
3435
C(bionic, "bionic", "Bionic category") \
3536
C(power, "power", "Power category") \
36-
C(packagemanager, "packagemanager", "PackageManager category") \
37+
C(packagemanager, "pm", "PackageManager category") \
3738
C(systemserver, "ss", "System Server category") \
3839
C(database, "database", "Database category") \
3940
C(network, "network", "Network category") \

0 commit comments

Comments
 (0)