haskell-language-server/hls-graph/html
Ruslan Gadeev 5d56aa70a8
fix typos (#3325)
Co-authored-by: Michael Peyton Jones <me@michaelpj.com>
2022-11-09 17:42:12 +00:00
..
data Reimplement shake (continued) (#2060) 2021-09-25 10:23:52 +00:00
ts Add pre-commit hook for cleaning up mixed-line endings (#2679) 2022-02-04 14:50:18 +00:00
profile.html Reimplement shake (continued) (#2060) 2021-09-25 10:23:52 +00:00
README.md Reimplement shake (continued) (#2060) 2021-09-25 10:23:52 +00:00
shake.js fix typos (#3325) 2022-11-09 17:42:12 +00:00

Shake HTML

HTML files originally used by Shake and now by hls-graph, for profiling build runs.

Files

  • profile.html is the actual profiler.
  • profile-data.js, progress-data.js and metadata.js are files with sample data, matching that generated by the compiler.
  • shake.js is generated from the code in ts.

Development

Before doing any work you need the jQuery, Flot and dgtable JavaScript dependencies. These can be found in the js-jquery, js-flot and js-dgtable repos. Copy the associated JavaScript files into a lib directory, renaming to take away version numbers and .min parts.

To build and test shake.js from html run:

tsc -p ts               # generated shake.js
tslint -p ts            # run the linter

Or, for the one liner:

tsc -p ts && tslint -p ts

To test out the profile.html just open it after doing the above steps.