plasma-umass / coz

Coz: Causal Profiling

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Please make profile viewer work while offline

petterreinholdtsen opened this issue · comments

I was offline for the weekend and spent some time working on coz. But when I tried to use the profile viewer implemented in javascript from the gh-pages branch, it did not work.

I tracked this down to the fact that the HTML code is not self contained, but depend on code fragments downloaded from the Internet.

These seem to be the problematic dependencies:

% grep https:/ index.htm 
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.min.css">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/js/bootstrap.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/d3-tip/0.6.3/d3-tip.min.js"></script>
%

Please rewrite the web page to use local copies of these javascript and css files, to ensure the profiler work also without Internet access.