-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Prototype web view of Tracer service information #43174
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
3fe778b
Sort ctr/dtr times and add openFile transition
Dr15Jones 8884acc
Can not output a json file and a web data file
Dr15Jones ca88960
Moved scripts from FWCore/Services/bin to /scripts
Dr15Jones f48fd49
Prototype web application to view tracer log
Dr15Jones f1af057
Added Tracer option to stop MessageLogger reporting
Dr15Jones 378ca32
Added README.md files
Dr15Jones File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Using edmTracerCompactLogViewer.py | ||
|
||
## Introduction | ||
The `edmTracerCompactLogViewer.py` is used to create a human understandable representation of the file generated by the `Tracer` service. Two representations are possible: text and interactive web. | ||
|
||
## Creating Tracer file | ||
To create a Tracer file, add the following to a cmsRun configuration | ||
```python | ||
process.add_(cms.Service("Tracer", | ||
useMessageLogger=cms.untracked.bool(False)), | ||
fileName=cms.untracked.string("<name of file>")) | ||
``` | ||
Where `"<name of file>"` is whatever name you want to use for the file that will hold the Tracer output. The use of `useMessageLogger=cms.untracked.bool(False)` is optional but does | ||
help avoid creating a large output from cmsRun. | ||
|
||
## Processing Tracer file | ||
The Tracer file can either be processed to output a human readable text output (similar to what the Tracer service does when `useMessageLogger==True`) or create a `data.js` file that | ||
can be used by a web application. | ||
|
||
### text output | ||
Issue the shell command | ||
```edmTracerCompactLogViewer.py <name of file>``` | ||
|
||
The script will output to the screen the text output. It is probably most useful to redirect the output to a file. | ||
|
||
If you only want to see the framework transitions and not all the information about ED or ES modules, you can use the option `-f`. | ||
|
||
### web output | ||
Issue the shell command | ||
```edmTracerCompactLogViewer.py -w <name of file>``` | ||
|
||
The script will outut a new file named `data.js`. | ||
|
||
If you only want to see the framework transitions and not all the information about ED or ES modules, you can use the option `-f`. | ||
|
||
#### setup web data | ||
|
||
You will need to copy all the files in `$CMSSW_RELEASE_BASE/src/FWCore/Services/web` to a directory you can access from a web browser. Copy the `data.js` file | ||
created by `edmTracerCompactLogViewer.py` into that same web browser accessible directory. Now you can have your web browser access the `index.html` file. | ||
|
||
For directions on how to use the web application, see the [`FWCore/Services/web/README.md`](../web/README.md) file. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@smuzaffar Are README files in
scripts
ok?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.
yes , it is fine to have non-executable files in
scripts
directory.scram
only copies executable files fromscripts
tocmssw/bin
PATH.