Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

checkpoint: File edit:

rUv4aa6f68be810
diff --git a/v3/@claude-flow/performance/src/attention-integration.ts b/v3/@claude-flow/performance/src/attention-integration.ts
index 849e09909a..e4c5bf9fbd 100644
--- a/v3/@claude-flow/performance/src/attention-integration.ts
+++ b/v3/@claude-flow/performance/src/attention-integration.ts
@@ -267,6 +267,13 @@ export class FlashAttentionOptimizer {
getMetrics(): PerformanceMetrics {
const avgSpeedup = this.getSpeedup();
+ // Calculate memory savings
+ const baselineMemory = this.metrics.totalBaselineMemory;
+ const optimizedMemory = this.metrics.totalOptimizedMemory;
+ const memorySaved = Math.max(0, baselineMemory - optimizedMemory);
+ const memorySavedPercent =
+ baselineMemory > 0 ? (memorySaved / baselineMemory) * 100 : 0;
+
return {
totalOperations: this.metrics.operations,
averageSpeedup: avgSpeedup,
@@ -275,11 +282,17 @@ export class FlashAttentionOptimizer {
this.metrics.operations > 0
? this.metrics.totalExecutionTime / this.metrics.operations
: 0,
- totalMemorySavedBytes: 0, // TODO: Implement memory tracking
+ totalMemorySavedBytes: memorySaved,
successRate:
this.metrics.operations > 0
? (this.metrics.successfulOperations / this.metrics.operations) * 100
: 0,
+ // Memory tracking metrics
+ baselineMemoryBytes: baselineMemory,
+ optimizedMemoryBytes: optimizedMemory,
+ memorySavedBytes: memorySaved,
+ memorySavedPercent: memorySavedPercent,
+ peakMemoryBytes: this.metrics.peakMemory,
};
}