47
edits
(Snappy regression tests) |
(Rewritten page for updated information) |
||
| Line 1: | Line 1: | ||
The Snappy Symbolication Server is a Web server for symbolicating Firefox stacks. It matches PC addresses to modules in memory and looks up the corresponding function names in server-side symbol files (.SYM files). | |||
== Running == | |||
The source code for Snappy lives in the [https://github.com/mozilla/Snappy-Symbolication-Server Mozilla Github repository]. Snappy runs at [http://www.python.org Python] 2.7 and depends on [http://www.tornadoweb.org Tornado] and | |||
2 | [https://pypi.python.org/pypi/futures concurrent.futures] packages. The best way to install them is through [https://pip.pypa.io pip]: | ||
:<code>pip install tornado futures</code> | |||
To run snappy on your machine, just type: | |||
:<code>python symbolicationWebService.py <configuration-file></code> | |||
| | The snappy repository contains two sample configuration files for Linux and Windows. Here is a summary for the config fields: | ||
{| class="wikitable" | |||
! Section !! colspan=2 | Fields | |||
|- | |||
| | ! !! Field !! Description | ||
| | |- | ||
| | | rowspan=6 | General || hostname || Server address or name | ||
| | |- | ||
| | | portNumber || Server port number | ||
|- | |||
| remoteSymbolServer || The address of a secondary remote server to forward requests to | |||
| | |- | ||
| | | maxCacheEntries || Number of entries for RAM symbol cache | ||
|- | |||
| mruSymbolStateFile || Json file with RAM cache info | |||
|- | |||
| maxMRUSymbolPersist || Maximum number of symbols for cache | |||
|- | |||
| rowspan=2 | DiskCache || cachePath || Path to cached symbol files | |||
|- | |||
| maxCacheFiles || Maximum number of files in the cache dir | |||
|- | |||
| rowspan=4 | Log || MaxFiles || Maximum number of log files | |||
|- | |||
| maxFileSize || Maximum size for a log file | |||
|- | |||
| logPath || Path to log files | |||
|- | |||
| logLevel || NOTSET, DEBUG, INFO, WARNING, ERROR, CRITICAL | |||
|- | |||
| SymbolPaths || || Each entry represents a path to search for symbols in the local disk | |||
|- | |||
| SymbolURLs || || Each entry represents a remote path to search for symbols | |||
|} | |||
== Contributing == | |||
It is a [https://github.com Github ] project, just fork it and send a PR. If you want to ask something, you can find people involved with Snappy Server in the #perf channel at irc.mozilla.org. | |||
== Project ideas == | |||
TODO | |||
== Regressions tests == | == Regressions tests == | ||
Some regressions tests to perform before sending a PR: | |||
* Perform a get request to the server | * Perform a get request to the server | ||
edits