summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorThomas Rueckstiess <thomas@rueckstiess.net>2015-01-06 15:57:22 +1100
committerThomas Rueckstiess <thomas@rueckstiess.net>2015-01-06 16:01:47 +1100
commit2ef79ca7a7740b525fab6a664b2dc495d3acab73 (patch)
tree2e2b6bbec5e865304a3fb83a35f7c82b6f0e55ee /tools
parent9870fac5cc06afbf2afcb2c808441f5355446779 (diff)
downloadmongo-2ef79ca7a7740b525fab6a664b2dc495d3acab73.tar.gz
added README
Diffstat (limited to 'tools')
-rw-r--r--tools/template/README.md43
1 files changed, 43 insertions, 0 deletions
diff --git a/tools/template/README.md b/tools/template/README.md
new file mode 100644
index 00000000000..3ee6ad29c64
--- /dev/null
+++ b/tools/template/README.md
@@ -0,0 +1,43 @@
+# wtstats template
+
+This subfolder contains the code to generate the `wtstats.html.template` file needed by the Python script `wtstats.py`, which is located in the `./tools` directory.
+
+The template is generated as a node.js "single page" application using several open source frameworks, see [Dependencies](./tools/template/README.md#Dependencies) below. The `wtstats.py` Python script parses stats files, transforms the data and inserts it as JSON into the template. The resulting HTML page can be openend in the browser.
+
+### Build Process
+
+To build the template, follow these steps:
+
+1. change into the `./tools/template` directory
+2. run `npm install` to install all missing dependencies.
+3. run `gulp pack`. It will build the template, pack everything into a single HTML file and copy it to its parent folder as `./tools/wtstats.html.template`.
+
+### Usage
+
+Call the `wtstats.py` Python script with a stats file as argument, e.g.
+
+```
+python wtstats.py /path/to/my/WiredTigerStat.19.16
+```
+
+The script will create `wtstats.html` in the working directory, which can be viewed with any modern browser (latest versions of Chrome, Safari, FireFox, Internet Explorer supported).
+
+For more information about _wtstats_ usage, check out the [wtstats documentation](https://github.com/wiredtiger/wiredtiger/wiki/WiredTiger-statistics) on the WiredTiger wiki.
+
+### Dependencies
+
+- [ampersand.js](http://ampersandjs.com/), MV* framework, several modules, all under [MIT license][1]
+- [Bootstrap](http://www.getbootstrap.com/), page layout and UI, [MIT license][2]
+- [d3](http://d3js.org/), data bindings and visualization, [BSD license][3]
+- [jQuery](http://jquery.com/), DOM manipulation, [MIT license][4]
+- [lodash](https://lodash.com/), object/array transformation, [MIT license][5]
+- [fontawesome](http://fontawesome.io/), icons, [OFL and MIT licenses][6]
+
+
+[1]: https://github.com/AmpersandJS/ampersand-view/blob/master/LICENSE.md
+[2]: https://github.com/twbs/bootstrap/blob/master/LICENSE
+[3]: https://github.com/mbostock/d3/blob/master/LICENSE
+[4]: https://github.com/jquery/jquery/blob/2.1.3/MIT-LICENSE.txt
+[5]: https://github.com/lodash/lodash/blob/master/LICENSE.txt
+[6]: http://fontawesome.io/license/
+