Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

show cpu core log list #232

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Shaoshian
Copy link
Contributor

Signed-off-by: root [email protected]

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
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个不是很能理解。。

Copy link
Contributor

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?

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":
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

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():
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants