File: index.htm

package info (click to toggle)
coz-profiler 0.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 22,528 kB
  • sloc: ansic: 188,045; javascript: 20,133; cpp: 6,852; makefile: 214; python: 118; sh: 88
file content (129 lines) | stat: -rw-r--r-- 5,921 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>coz plot</title>

    <link rel="stylesheet" href="lib/bootstrap/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="lib/font-awesome/css/font-awesome.css">
    <link rel="stylesheet" type="text/css" href="css/ui.css">
    <link rel="stylesheet" type="text/css" href="css/plot.css">
  </head>
  <body>
    <div class="container-fluid">
      <div class="row">
        <div id="sidebar" class="col-sm-3 col-md-3 col-lg-2 sidebar">

          <h3 class="">Causal Profile</h3>
          <button type="button" id="load-profile-btn" class="btn btn-primary btn-block" data-toggle="modal" data-target="#load-profile-dlg">
            <i class="fa fa-folder-open"></i> Load a Profile
          </button>

          <div id="legend">
            <h4>Progress Points</h4>
            <p class="legend-entry noseries">None</p>
          </div> <!-- /legend -->

          <div id="sortby">
            <h4 id="sortby_label">Sort By</h4>
            <select id="sortby_field" class="form-control" disabled aria-labelledby="sortby_label">
              <option value="alphabetical">Alphabetical</option>
              <option value="impact" selected>Impact</option>
              <option value="max_speedup">Max Speedup</option>
              <option value="min_speedup">Min Speedup</option>
            </select>
          </div> <!-- /sortby -->

          <div id="minpoints">
            <h4 id="minpoints_label">Minimum Points</h4>
            <input type="range" id="minpoints_field" min="0" max="20" step="1" value="10" list="ticks" aria-labeledby="minpoints_label">
            <datalist id="ticks">
              <option value="0">
              <option value="5">
              <option value="10">
              <option value="15">
              <option value="20">
            </datalist>
            <p id="minpoints_display" class="text-center">10</p>
          </div> <!-- /minpoint -->

        </div> <!-- /sidebar -->

        <div class="col-sm-9 col-sm-offset-3 col-md-9 col-md-offset-3 col-lg-10 col-lg-offset-2">
          <div class="row">
            <div id="warning-area" class="col-md-12"></div>
          </div>
          <div class="row">
            <div id="plot-area" class="col-md-12">
              <div id="plot-message">
                <h1>Getting Started</h1>
                <p>
                  Welcome to the causal profile viewer. To make use of this profile viewer you'll first need a causal profile. You will need to use the <code>coz</code> program to collect a causal profile from your program. For this to work, you will need to add at least one <i>progress point</i> to your program, and then build it with debug information. Next, run your program with <code>coz</code>:
                </p>
<pre>
$ coz run --- ./myprogram arg1 arg2
</pre>
                <p>
                  Next, you will need to load your profile into this viewer. Click the <kbd>Load Profile</kbd> button on this page and browse to your file. There are some sample profiles available as well if you want to see what a causal profile looks like.
                </p>
              </div>
            </div>
          </div>
        </div> <!-- /main content -->

      </div> <!-- /row -->
    </div> <!-- /container-fluid -->

    <!-- File open dialog (hidden) -->
    <div class="modal fade" id="load-profile-dlg" tabindex="-1" role="dialog" aria-labelledby="load-profile-dlg-title" aria-hidden="true">
      <div class="modal-dialog">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" id="load-profile-dlg-title">Select a Causal Profile</h4>
          </div> <!-- /modal-header -->
          <div class="modal-body">
            <div class="text-center">
              <label for="load-profile-form">Load Profile</label>
              <form id="load-profile-form">
                <input type="file" id="load-profile-file" accept=".coz" style="display: none" />
                <div class="input-group">
                  <span class="input-group-addon"><i class="fa fa-file-text-o"></i></span>
                  <input type="text" class="form-control" id="load-profile-filename" disabled placeholder="Select a profile">
                  <span class="input-group-btn">
                    <button class="browse btn btn-primary" id="load-profile-browse-btn" type="button">
                      <i class="fa fa-search"></i>
                      Browse
                    </button>
                  </span>
                </div> <!-- /input-group -->
              </form>
              <br>
              <label for="samples">Sample Profiles</label>
              <div id="samples"></div>
            </div> <!-- /text-center -->
          </div> <!-- /modal-body -->
          <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
            <button id="load-profile-open-btn" type="button" data-dismiss="modal" class="btn btn-primary disabled">Open</button>
          </div> <!-- /modal-footer -->
        </div> <!-- /modal-content -->
      </div> <!-- /modal-dialog -->
    </div> <!-- /modal -->

    <script src="lib/jquery-3.1.1.js"></script>
    <script src="lib/bootstrap/bootstrap.js"></script>
    <script src="lib/d3/d3.js"></script>
    <script src="lib/d3/d3-tip.js"></script>
    <script src="lib/science/science.v1.js"></script>

    <!-- Causal profile loading and plotting code -->
    <script src="js/profile.js"></script>

    <!-- The UI code -->
    <script src="js/ui.js"></script>
  </body>
</html>