Lines Matching refs:stat

732         # Regex for this stat (string version used to construct union regex)
737 # Whether this stat is use per CPU or not
743 # List of values of stat per timestamp
746 # Whether this stat has been found for the current timestamp
749 # Whether this stat has been found at least once
753 # Field used to hold ElementTree subelement for this stat
756 # Create per-CPU stat name and regex, etc.
793 print "registering stat:", name, "group:", group, group_index
927 for stat in stats.stats_list:
928 if stat.per_cpu:
930 if not stat.per_cpu_found[i]:
931 if not stat.not_found_at_least_once:
932 print "WARNING: stat not found in window #", \
933 window_num, ":", stat.per_cpu_name[i]
935 "this stat"
936 stat.not_found_at_least_once = True
937 stat.values[i].append(str(0))
938 stat.per_cpu_found[i] = False
940 if not stat.found:
941 if not stat.not_found_at_least_once:
942 print "WARNING: stat not found in window #", \
943 window_num, ":", stat.name
944 print "suppressing further warnings for this stat"
945 stat.not_found_at_least_once = True
946 stat.values.append(str(0))
947 stat.found = False
956 for stat in stats_not_found_list[:]:
957 if stat.per_cpu:
959 m = stat.per_cpu_regex[i].match(line)
961 if stat.name == "ipc":
966 print stat.per_cpu_name[i], value
967 stat.values[i].append(value)
968 stat.per_cpu_found[i] = True
971 if not stat.per_cpu_found[j]:
974 stats_not_found_list.remove(stat)
975 if stat.description == "":
976 stat.description = m.group(2)
978 m = stat.regex.match(line)
982 print stat.name, value
983 stat.values.append(value)
984 stat.found = True
985 stats_not_found_list.remove(stat)
986 if stat.description == "":
987 stat.description = m.group(2)
1028 for stat in stats.stats_list:
1030 stat_name = re.sub("\.", "_", stat.short_name)
1032 s.set("title", stat.group)
1035 s.set("key", "0x%08x" % stat.key)
1038 if stat.per_cpu:
1045 s.set("description", stat.description)
1103 for stat in stats.stats_list:
1104 if stat.per_cpu:
1105 stat_length = len(stat.values[0])
1107 stat_length = len(stat.values)
1110 for stat in stats.stats_list:
1111 if stat.per_cpu:
1114 stat.key, int(float(stat.values[i][n]))))
1117 stat.key, int(float(stat.values[n]))))
1223 # Parse stat config file and register stats