Skip to content

Commit

Permalink
New Features:
Browse files Browse the repository at this point in the history
1. Flamegraph showing data from firestore
2. Flamegraph service gets data
New Pages:
1. flame-graph.page.ts
Bugs Corrected:
To Be Corrected:
0. On product delete, delete trace results
1. On product delete, delete flamegraph results
  • Loading branch information
juanfranciscocis committed Aug 14, 2024
1 parent 39732af commit 6bcbf4a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
17 changes: 15 additions & 2 deletions src/app/pages/flame-graph/flame-graph.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,32 @@ export class FlameGraphPage implements OnInit {
console.log(flameGraph);

let allRawData: RawData[] = [];
let keys = [];

for (let key in flameGraph) {
// @ts-ignore
const data_to_transform = flameGraph?.[key];
console.log(data_to_transform);

for (let serverKey in data_to_transform) {
//get the keys
keys = Object.keys(data_to_transform);
console.log(keys);

//TODO:Add data to the flame graph



for (let serverKey in data_to_transform) {
const rawData = this.transformToRawData(data_to_transform[serverKey][0]);
allRawData.push(rawData);
}

}






//Add the root node
allRawData = [{
label: "root",
Expand Down
1 change: 0 additions & 1 deletion www/1101.9eb87655f48756b3.js

This file was deleted.

2 changes: 1 addition & 1 deletion www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@

<body>
<app-root></app-root>
<script src="runtime.6f8cad5d8ec472e9.js" type="module"></script><script src="polyfills.e9ea84778c1ce49f.js" type="module"></script><script src="main.4c8a11abcdd96918.js" type="module"></script></body>
<script src="runtime.66b22c40f3f60e40.js" type="module"></script><script src="polyfills.e9ea84778c1ce49f.js" type="module"></script><script src="main.4c8a11abcdd96918.js" type="module"></script></body>

</html>
1 change: 0 additions & 1 deletion www/runtime.6f8cad5d8ec472e9.js

This file was deleted.

0 comments on commit 6bcbf4a

Please sign in to comment.