Add: Load benchmark plugin snippet

This commit is contained in:
surunzi
2018-02-07 00:17:32 +08:00
parent ba6d150941
commit c144fa39cd
2 changed files with 11 additions and 1 deletions

View File

@@ -112,6 +112,7 @@ It is possible to enhance Eruda with more features by writing plugins. Check sou
* [eruda-timing](https://github.com/liriliri/eruda-timing): Show performance and resource timing.
* [eruda-memory](https://github.com/liriliri/eruda-memory): Display page memory info.
* [eruda-code](https://github.com/liriliri/eruda-code): Run JavaScript code.
* [eruda-benchmark](https://github.com/liriliri/eruda-benchmark): Run JavaScript benchmarks.
When writing plugins, you can use utilities exposed by Eruda, see [docs](doc/UTIL_API.md) here.

View File

@@ -104,6 +104,14 @@ export default [
},
desc: 'Edit and run JavaScript'
},
{
name: 'Load Benchmark Plugin',
fn()
{
loadPlugin('benchmark');
},
desc: 'Run JavaScript benchmarks'
},
{
name: 'Restore Settings',
fn()
@@ -202,5 +210,6 @@ let pluginVersion = {
features: '1.0.2',
timing: '1.1.1',
memory: '1.0.1',
code: '1.0.0'
code: '1.0.0',
benchmark: '1.0.0'
};