Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new trace event count and added it to vector_scalar_mul #2042

Merged
merged 2 commits into from
Feb 13, 2025

Conversation

jackl-xilinx
Copy link
Collaborator

No description provided.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

black

[black] reported by reviewdog 🐶

with open(trace_path, 'r') as f:


[black] reported by reviewdog 🐶

if (x['name'] == "INSTR_EVENT_0") and (x['ph'] == 'B'):


[black] reported by reviewdog 🐶


[black] reported by reviewdog 🐶

if x['name'] == "INSTR_EVENT_1" and x['ph'] == 'B':


[black] reported by reviewdog 🐶

delta.append(x['ts'] - event0)


[black] reported by reviewdog 🐶


[black] reported by reviewdog 🐶

def get_vector_time(trace):


[black] reported by reviewdog 🐶

with open(trace, 'r') as f:


[black] reported by reviewdog 🐶


[black] reported by reviewdog 🐶

if (x['name'] == "INSTR_EVENT_0") and (x['ph'] == 'B'):
start = x['ts']
if x['name'] == "INSTR_EVENT_1" and x['ph'] == 'B':
end = x['ts']


[black] reported by reviewdog 🐶


[black] reported by reviewdog 🐶

if event['name'] == "INSTR_VECTOR":
if event['ts'] < start:


[black] reported by reviewdog 🐶

if event['ts'] > end:


[black] reported by reviewdog 🐶

if event['ph'] == 'B':


[black] reported by reviewdog 🐶

elif event['ph'] == 'E' and stack:


[black] reported by reviewdog 🐶

duration = event['ts'] - begin_event['ts']


[black] reported by reviewdog 🐶

return total_duration/(end-start)

@jackl-xilinx jackl-xilinx marked this pull request as ready for review February 13, 2025 21:08
@jackl-xilinx jackl-xilinx added this pull request to the merge queue Feb 13, 2025
Merged via the queue into main with commit b2d9cfa Feb 13, 2025
53 checks passed
@jackl-xilinx jackl-xilinx deleted the add_tracecount branch February 13, 2025 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant