You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: FWCore/Services/scripts/README.md
+3-6Lines changed: 3 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,8 +7,8 @@ The `edmTracerCompactLogViewer.py` is used to create a human understandable repr
7
7
To create a Tracer file, add the following to a cmsRun configuration
8
8
```python
9
9
process.add_(cms.Service("Tracer",
10
-
useMessageLogger=cms.untracked.bool(False)),
11
-
fileName=cms.untracked.string("<name of file>"))
10
+
useMessageLogger=cms.untracked.bool(False),
11
+
fileName=cms.untracked.string("<name of file>")))
12
12
```
13
13
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
14
14
help avoid creating a large output from cmsRun.
@@ -29,14 +29,11 @@ If you only want to see the framework transitions and not all the information ab
29
29
Issue the shell command
30
30
```edmTracerCompactLogViewer.py -w <name of file>```
31
31
32
-
The script will outut a new file named `data.js`.
32
+
The script will output a new file named `data.json`.
33
33
34
34
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`.
35
35
You can also have all activities related to each module grouped by using the `-m` option.
36
36
37
37
#### setup web data
38
38
39
-
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
40
-
created by `edmTracerCompactLogViewer.py` into that same web browser accessible directory. Now you can have your web browser access the `index.html` file.
41
-
42
39
For directions on how to use the web application, see the [`FWCore/Services/web/README.md`](../web/README.md) file.
Copy file name to clipboardExpand all lines: FWCore/Services/web/README.md
+5-10Lines changed: 5 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,25 +1,20 @@
1
1
# Interactive Tracer Log Viewer
2
2
3
-
## Starting the viewer
4
-
5
-
### standard web server
6
-
If the output of `edmTracerCompactLogViewer.py` and the files from `FWCore/Services/web` have been placed in a directory accessible to a web server, you may just point your browser to the correct URL to run the viewer.
7
-
8
-
# My HTTP Server
9
-
10
-
This is a simple HTTP server implemented in Python using the `http.server` module.
3
+
The viewer has a HTTP server component, implemented in Python using the `http.server` module, and a JavaScript client component.
11
4
12
5
## Usage
13
6
14
-
1. Run the server script (`server.py`) using Python.
15
-
2. Access the server in your web browser by navigating to `http://localhost:65432`.
7
+
1. Copy the output of `edmTracerCompactLogViewer.py` and the files from `FWCore/Services/web` into a directory. The server lists all `.json` files in a drop-down list.
8
+
2. Run the server script (`server.py`) using Python.
9
+
3. Access the server in your web browser by navigating to `http://localhost:65432`.
16
10
17
11
### Specifying the Port
18
12
19
13
You can specify the port to serve on by using the `--port` argument:
20
14
21
15
```sh
22
16
python server.py --port 8080
17
+
```
23
18
24
19
## Viewer layout
25
20
The viewer is composed to two main areas, the top is the timing viewer and at the bottom shows information about a selected time block. The top time viewer is further divided into three parts. On the left is the macro scoping grouping of framework activity types into Global and Stream activities. If the _module centric_ option was chosen then this area is also divided by each module activity which is sorted based on most time used to least time used. At the bottom is the measurement of time since the start of the job. The main area shows the blocks of time spend doing various work within the Framework.
0 commit comments