-
Notifications
You must be signed in to change notification settings - Fork 76
show cpu core log list #232
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: root <[email protected]>
analyzer/analyzer.py
Outdated
summary_data_dict = output_sort["ceph"][table] | ||
total_data_dict["summary"] = summary_data_dict | ||
total_data_dict["detail"] = detail_data_dict | ||
output_sort["ceph"][table] = total_data_dict |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you move this part into process_sar function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个不是很能理解。。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For current design, I don't think you need to add such logic under format_result_for_visualizer(self, data), you can move to the function to process sar data?
visualizer/visualizer.py
Outdated
chart_data[key][node] = value | ||
output.extend( self.generate_table_from_json(data,'cetune_table', field_type) ) | ||
output.extend( self.generate_line_chart(chart_data, node_type, field_type ) ) | ||
if node_type == "ceph": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't make this feature only for 'ceph', please make it more general
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
visualizer/visualizer.py
Outdated
for node, node_data in field_data["detail"].items(): | ||
if node not in detail_data: | ||
detail_data[node] = OrderedDict() | ||
for key, value in node_data.items(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this part of codes is duplicated with summary, can you merge it? Or make it as one function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
Signed-off-by: root <[email protected]>
Signed-off-by: root [email protected]