1
0
mirror of synced 2025-11-06 04:21:11 +08:00

feat: replace fps and memory with monitor plugin

This commit is contained in:
redhoodsu
2023-03-26 16:58:38 +08:00
parent 917048054c
commit a23ce022f7
2 changed files with 5 additions and 14 deletions

View File

@@ -108,10 +108,9 @@ eruda.init({
## Plugins ## Plugins
* [eruda-fps](https://github.com/liriliri/eruda-fps): Display page fps info. * [eruda-monitor](https://github.com/liriliri/eruda-monitor): Display page fps and memory.
* [eruda-features](https://github.com/liriliri/eruda-features): Browser feature detections. * [eruda-features](https://github.com/liriliri/eruda-features): Browser feature detections.
* [eruda-timing](https://github.com/liriliri/eruda-timing): Show performance and resource timing. * [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-code](https://github.com/liriliri/eruda-code): Run JavaScript code.
* [eruda-benchmark](https://github.com/liriliri/eruda-benchmark): Run JavaScript benchmarks. * [eruda-benchmark](https://github.com/liriliri/eruda-benchmark): Run JavaScript benchmarks.
* [eruda-geolocation](https://github.com/liriliri/eruda-geolocation): Test geolocation. * [eruda-geolocation](https://github.com/liriliri/eruda-geolocation): Test geolocation.

View File

@@ -94,11 +94,11 @@ export default [
desc: 'Scale down the whole page to fit screen', desc: 'Scale down the whole page to fit screen',
}, },
{ {
name: 'Load Fps Plugin', name: 'Load Monitor Plugin',
fn() { fn() {
loadPlugin('fps') loadPlugin('monitor')
}, },
desc: 'Display page fps', desc: 'Display page fps and memory',
}, },
{ {
name: 'Load Features Plugin', name: 'Load Features Plugin',
@@ -114,13 +114,6 @@ export default [
}, },
desc: 'Show performance and resource timing', desc: 'Show performance and resource timing',
}, },
{
name: 'Load Memory Plugin',
fn() {
loadPlugin('memory')
},
desc: 'Display memory',
},
{ {
name: 'Load Code Plugin', name: 'Load Code Plugin',
fn() { fn() {
@@ -224,10 +217,9 @@ function loadPlugin(name) {
} }
const pluginVersion = { const pluginVersion = {
fps: '2.0.0', monitor: '1.0.0',
features: '2.0.0', features: '2.0.0',
timing: '2.0.1', timing: '2.0.1',
memory: '2.0.0',
code: '2.1.0', code: '2.1.0',
benchmark: '2.0.0', benchmark: '2.0.0',
geolocation: '2.0.0', geolocation: '2.0.0',