MCPcopy Index your code
hub / github.com/ZToolsCenter/ZTools / getUsageStats

Method getUsageStats

src/main/api/renderer/commands.ts:149–157  ·  view source on GitHub ↗

* 获取使用统计

()

Source from the content-addressed store, hash-verified

147 * 获取使用统计
148 */
149 private getUsageStats(): any[] {
150 try {
151 const stats = databaseAPI.dbGet('command-usage-stats')
152 return stats || []
153 } catch (error) {
154 console.error('[Commands] 获取使用统计失败:', error)
155 return []
156 }
157 }
158
159 /**
160 * 获取系统应用列表,并处理图标缓存

Callers 2

setupIPCMethod · 0.95
useSearchResultsFunction · 0.80

Calls 1

dbGetMethod · 0.45

Tested by

no test coverage detected