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

Create file with unique name to dump usage metrics #7831

Merged
merged 2 commits into from
Dec 5, 2023

Conversation

rbramand-xilinx
Copy link
Collaborator

Problem solved by the commit

When dumping usage metrics into JSON file, the file name is not unique. Including pid in the file name to create unique file as the log is dumped per process.

Bug / issue (if any) fixed, which PR introduced the bug, how it was discovered

PR - #7788 introduced the bug
This bug was detected when debugging CR - https://jira.xilinx.com/browse/CR-1181804. Files names matched for processes exiting at same time and there was issue of files being overwritten.

How problem was solved, alternative solutions (if any) and why they were rejected

Problem was solved by adding pid in file name as log is dumped per process and it will be unique

Risks (if any) associated the changes in the commit

Low

What has been tested and how, request additional testing if necessary

Tested with the application that is attached with CR and things are working as expected

Documentation impact (if any)

NA

@rbramand-xilinx rbramand-xilinx requested review from chvamshi-xilinx and removed request for rozumx December 5, 2023 06:44
@gbuildx
Copy link
Collaborator

gbuildx commented Dec 5, 2023

Build failed :(

@gbuildx
Copy link
Collaborator

gbuildx commented Dec 5, 2023

Build Passed!

Copy link
Collaborator

@stsoe stsoe left a comment

Choose a reason for hiding this comment

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

Minor

src/runtime_src/core/common/utils.cpp Outdated Show resolved Hide resolved
Signed-off-by: rbramand <[email protected]>
@gbuildx
Copy link
Collaborator

gbuildx commented Dec 5, 2023

Build Passed!

@stsoe stsoe merged commit 8eefcb7 into Xilinx:master Dec 5, 2023
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.

4 participants