Skip to content

Commit

Permalink
[front]Fix span data deduplication issue (#511)
Browse files Browse the repository at this point in the history
Signed-off-by: yiqianxu <[email protected]>
  • Loading branch information
thousandxu authored May 10, 2023
1 parent 047a3fb commit d07ce54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
## Unreleased
### New features
- Display scheduler run queue latency on Trace-Profiling chart. To learn more about the concept of 'Run Queue Latency', refer to [this blog post](https://www.brendangregg.com/blog/2016-10-08/linux-bcc-runqlat.html). You can also find a use case for this feature in [this blog post](http://kindling.harmonycloud.cn/blogs/use-cases/optimize-cpu/). ([#494](https://github.com/KindlingProject/kindling/pull/494))
### Bug fixes
- Fix span data deduplication issue.([#511](https://github.com/KindlingProject/kindling/pull/511)

## v0.7.2 - 2023-04-24
### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion camera-front/src/containers/thread/camera/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ export const dataHandle = (data: any, timeRange, trace: any) => {
let cpuEvents = _.chain(list).map('cpuEvents').flatten().uniqBy('startTime').value();
let javaFutexEvents = _.chain(list).map('javaFutexEvents').flatten().uniqBy('startTime').value();
let transactionIdsList = _.chain(list).map('transactionIds').flatten().value();
let spanList = _.chain(list).map('spans').flatten().uniqBy('startTime').compact().value();
let spanList = _.chain(list).map('spans').flatten().uniqWith((a, b) => a.startTime === b.startTime && a.name === b.name && a.endTime === b.endTime).compact().value();
let innerCallsList = _.chain(list).map('innerCalls').flatten().uniqBy('startTime').compact().value();
threadObj.innerCalls = innerCallsList;

Expand Down

0 comments on commit d07ce54

Please sign in to comment.