Merge "Teaches the ProcessCpuTracker about USAPs."

This commit is contained in:
Christian Wailes
2020-03-06 18:11:53 +00:00
committed by Gerrit Code Review

View File

@@ -883,8 +883,11 @@ public class ProcessCpuTracker {
private void getName(Stats st, String cmdlineFile) {
String newName = st.name;
if (st.name == null || st.name.equals("app_process")
|| st.name.equals("<pre-initialized>")) {
if (st.name == null
|| st.name.equals("app_process")
|| st.name.equals("<pre-initialized>")
|| st.name.equals("usap32")
|| st.name.equals("usap64")) {
String cmdName = ProcStatsUtil.readTerminatedProcFile(cmdlineFile, (byte) '\0');
if (cmdName != null && cmdName.length() > 1) {
newName = cmdName;