mirror of
https://github.com/liriliri/eruda.git
synced 2026-05-20 08:47:20 +08:00
Add: Load benchmark plugin snippet
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
@@ -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'
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user