From 506d6bf26e3375787dcbe73ad88086e90ba7b2f1 Mon Sep 17 00:00:00 2001 From: Juan Cisneros Date: Wed, 28 Aug 2024 12:22:05 -0500 Subject: [PATCH] New Features: 1.Compare dates flamegraph, new design 2. Show in rows not columns 3. Added AI space New Pages: Bugs Corrected: To Be Corrected: 0. On product delete, delete trace results 1. On product delete, delete flamegraph results --- .../flame-graph-compare.module.ts | 18 +++++---- .../flame-graph-compare.page.html | 39 +++++++++++++------ .../flame-graph-compare.page.ts | 4 ++ 3 files changed, 42 insertions(+), 19 deletions(-) diff --git a/src/app/pages/flame-graph-compare/flame-graph-compare.module.ts b/src/app/pages/flame-graph-compare/flame-graph-compare.module.ts index c677dd6..81c7b62 100644 --- a/src/app/pages/flame-graph-compare/flame-graph-compare.module.ts +++ b/src/app/pages/flame-graph-compare/flame-graph-compare.module.ts @@ -9,16 +9,18 @@ import { FlameGraphComparePageRoutingModule } from './flame-graph-compare-routin import { FlameGraphComparePage } from './flame-graph-compare.page'; import {ComponentsModule} from "../../components/components.module"; import {NgxFlamegraphModule} from "ngx-flamegraph"; +import {MarkdownComponent} from "ngx-markdown"; @NgModule({ - imports: [ - CommonModule, - FormsModule, - IonicModule, - FlameGraphComparePageRoutingModule, - ComponentsModule, - NgxFlamegraphModule - ], + imports: [ + CommonModule, + FormsModule, + IonicModule, + FlameGraphComparePageRoutingModule, + ComponentsModule, + NgxFlamegraphModule, + MarkdownComponent + ], declarations: [FlameGraphComparePage] }) export class FlameGraphComparePageModule {} diff --git a/src/app/pages/flame-graph-compare/flame-graph-compare.page.html b/src/app/pages/flame-graph-compare/flame-graph-compare.page.html index 20e1198..3e0213a 100644 --- a/src/app/pages/flame-graph-compare/flame-graph-compare.page.html +++ b/src/app/pages/flame-graph-compare/flame-graph-compare.page.html @@ -7,19 +7,36 @@ - - - - - -

{{ date }}

-
- -
+ + + + + + + + Data for: {{date}} + + - -
+ + +
+
+ + + + + + DevProbe AI Analytic + + + {{aiAnalytic}} + + + + + diff --git a/src/app/pages/flame-graph-compare/flame-graph-compare.page.ts b/src/app/pages/flame-graph-compare/flame-graph-compare.page.ts index 1b84470..02a3bba 100644 --- a/src/app/pages/flame-graph-compare/flame-graph-compare.page.ts +++ b/src/app/pages/flame-graph-compare/flame-graph-compare.page.ts @@ -15,7 +15,9 @@ export class FlameGraphComparePage implements OnInit { product: Product = {}; datesForComparison: string[] = []; + lenDates: number = 0; configurations: { [key: string]: { data: RawData[] } } = {}; + aiAnalytic: string = '# holaaaa'; constructor( private flameGraphService: FlameGraphService, @@ -108,6 +110,8 @@ export class FlameGraphComparePage implements OnInit { this.product = JSON.parse(params['product']); this.datesForComparison = JSON.parse(params['dates']); }); + + this.lenDates = this.datesForComparison.length; console.log(this.product.productObjective); console.log(this.datesForComparison);