This repository has been archived by the owner on May 25, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (45 loc) · 2.06 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="author" content="Chih-Yung Liang, Covart Lab, NTU CSIE">
<meta name="description" content="The profile result viewer for profiling HSA program with CodeXL.">
<title>Profile Result Viewer</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>
<body>
<div class="container">
<div class="page-header">
<h1>HSA Profile Result Viewer</h1>
</div>
<h2>API Trace</h2>
<form class="form-horizontal" id="apitrace-form">
<div class="form-group">
<label class="control-label col-md-offset-6 col-md-1" for="apitrace-file">URL:</label>
<div class="col-md-4">
<input type="text" class="form-control" id="apitrace-file" placeholder="apitrace.atp" required>
</div>
<div class="col-md-1">
<button type="submit" class="btn btn-success">View</button>
</div>
</div>
</form>
<div id="apitrace-result">
</div>
</div>
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/jstat/latest/jstat.min.js"></script>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<script src="js/APITraceAnalyzer.js"></script>
<script>
$.ajaxSetup({cache: false});
let apitrace = new APITraceAnalyzer(5, $('#apitrace-result'));
let apitraceURL = $('#apitrace-file');
$('#apitrace-form').submit(function() {
event.preventDefault();
apitrace.updateURL(apitraceURL.val());
});
</script>
</body>
</html>