@@ -1491,6 +1491,122 @@ Get the data container path for an app (TrollStore privilege)
14911491
14921492---
14931493
1494+ ### ` app.cpuUsage `
1495+
1496+ ![ Full Support] ( https://img.shields.io/badge/Trigger-Full-brightgreen )
1497+
1498+ ** Signature:** ` cpuUsage() `
1499+
1500+ Get CPU usage (process-level + system-level)
1501+
1502+ ** Returns:** ` CPUUsage `
1503+
1504+ * Object containing process (process CPU %) and system (system CPU object with total/user/system/idle/nice/cores)*
1505+
1506+ ---
1507+
1508+ ### ` app.memoryUsage `
1509+
1510+ ![ Full Support] ( https://img.shields.io/badge/Trigger-Full-brightgreen )
1511+
1512+ ** Signature:** ` memoryUsage() `
1513+
1514+ Get memory usage information
1515+
1516+ ** Returns:** ` MemoryUsage `
1517+
1518+ * Object containing usage (current MB), peak (peak MB), unit (unit string)*
1519+
1520+ ---
1521+
1522+ ### ` app.fps `
1523+
1524+ ![ Full Support] ( https://img.shields.io/badge/Trigger-Full-brightgreen )
1525+
1526+ ** Signature:** ` fps() `
1527+
1528+ Get current frame rate
1529+
1530+ ** Returns:** ` FPSInfo `
1531+
1532+ * Object containing fps (frame rate), isWarning (warning state), isCritical (critical state)*
1533+
1534+ ---
1535+
1536+ ### ` app.performanceSnapshot `
1537+
1538+ ![ Full Support] ( https://img.shields.io/badge/Trigger-Full-brightgreen )
1539+
1540+ ** Signature:** ` performanceSnapshot() `
1541+
1542+ Get complete performance metrics snapshot
1543+
1544+ ** Returns:** ` PerformanceSnapshot `
1545+
1546+ * Complete performance snapshot containing cpu, memory, fps, isMonitoring, timestamp*
1547+
1548+ ---
1549+
1550+ ### ` app.startMonitoring `
1551+
1552+ ![ Full Support] ( https://img.shields.io/badge/Trigger-Full-brightgreen )
1553+
1554+ ** Signature:** ` startMonitoring() `
1555+
1556+ Start performance monitoring (FPS sampling, metrics recording)
1557+
1558+ ** Returns:** ` boolean `
1559+
1560+ * Whether monitoring started successfully*
1561+
1562+ ---
1563+
1564+ ### ` app.stopMonitoring `
1565+
1566+ ![ Full Support] ( https://img.shields.io/badge/Trigger-Full-brightgreen )
1567+
1568+ ** Signature:** ` stopMonitoring() `
1569+
1570+ Stop performance monitoring
1571+
1572+ ** Returns:** ` boolean `
1573+
1574+ * Whether monitoring stopped successfully*
1575+
1576+ ---
1577+
1578+ ### ` app.performanceRecords `
1579+
1580+ ![ Full Support] ( https://img.shields.io/badge/Trigger-Full-brightgreen )
1581+
1582+ ** Signature:** ` performanceRecords(limit?) `
1583+
1584+ Get historical performance records
1585+
1586+ ** Parameters:**
1587+
1588+ | Name | Type | Description | Optional |
1589+ | ------| ------| -------------| ----------|
1590+ | ` limit ` | ` number ` | Number of records to return, defaults to 50 | Yes |
1591+
1592+ ** Returns:** ` [PerformanceRecord] `
1593+
1594+ * Array of performance records containing id, scriptName, executionTime, peakMemory, averageCPU, timestamp, success*
1595+
1596+ ---
1597+
1598+ ### ` app.clearPerformanceRecords `
1599+
1600+ ![ Full Support] ( https://img.shields.io/badge/Trigger-Full-brightgreen )
1601+
1602+ ** Signature:** ` clearPerformanceRecords() `
1603+
1604+ Clear all performance records
1605+
1606+ ** Returns:** ` void `
1607+
1608+ ---
1609+
14941610## haptic
14951611
14961612![ Limited Support] ( https://img.shields.io/badge/Trigger-Limited-orange )
0 commit comments