Skip to content
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
0ebf54d
Testing
simonswine Jun 21, 2022
3c8b16e
Testing v2
simonswine Jun 21, 2022
03274df
Add first draft of block compaction
cyriltovena Jul 6, 2023
021abc5
Removes unused file
cyriltovena Jul 6, 2023
c8026ad
Correct row count
cyriltovena Jul 6, 2023
b6095ea
WIP: Testing against dev.
cyriltovena Jul 6, 2023
bb92491
WIP: Testing against dev.
cyriltovena Jul 7, 2023
2734512
Fixes Profiles Iteration with Labels
cyriltovena Jul 11, 2023
4d43451
Fixes a bug and test compact locally
cyriltovena Jul 12, 2023
cd8433b
add tests instructions
cyriltovena Jul 12, 2023
ca97480
Add more meta informations and rewrite stacktraceIDs
cyriltovena Jul 12, 2023
19bc955
nit todo
cyriltovena Jul 12, 2023
1a69402
Refactoring code
cyriltovena Jul 13, 2023
c926723
Adds meta files information to dst meta
cyriltovena Jul 17, 2023
65639cd
Updates import to grafana/pyroscsope
cyriltovena Jul 19, 2023
6a337ac
Update pkg/iter/tree.go
cyriltovena Jul 20, 2023
a60fd9b
Add stacktrace rewriter
kolesnikovae Jul 17, 2023
71f2416
Fixes
kolesnikovae Jul 17, 2023
59258be
Add lookup table test
kolesnikovae Jul 17, 2023
c0f7566
Symbols reader integration
kolesnikovae Jul 18, 2023
0406791
Add SymbolsResolver.WriteStats
kolesnikovae Jul 18, 2023
fbc64e2
Fix lookup table
kolesnikovae Jul 18, 2023
2ea1e19
Add symbols writer
kolesnikovae Jul 19, 2023
bdf0c56
Load symdb block files at compaction
kolesnikovae Jul 20, 2023
fbab0c4
Fix meta samples stats
kolesnikovae Jul 20, 2023
f77e4fc
Add dedup slice append
kolesnikovae Jul 20, 2023
744d633
Cleanup
kolesnikovae Jul 20, 2023
4e8ca3f
Convert locations to stacktrace
kolesnikovae Jul 23, 2023
718883a
Implement symdb Reader.Load
kolesnikovae Jul 23, 2023
113e69d
Fix stacktrace inserter
kolesnikovae Jul 23, 2023
e7dce94
Fix symdb meta
kolesnikovae Jul 23, 2023
141ebc1
Fix lint issues
kolesnikovae Jul 23, 2023
26e1635
Fix symbols rewriter integration
kolesnikovae Jul 24, 2023
233c723
Remove unused rowNum field
kolesnikovae Jul 24, 2023
694ede7
Merge remote-tracking branch 'origin/next' into feat/compact
cyriltovena Jul 26, 2023
d3d7b9f
Remove bad tests
cyriltovena Jul 26, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkg/iter/tree.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
package iter

import (
<<<<<<< HEAD
"github.com/grafana/pyroscope/pkg/util/loser"
=======
"github.com/grafana/phlare/pkg/util/loser"
>>>>>>> ee8a92e04 (Add first draft of block compaction)
)

var _ Iterator[interface{}] = &TreeIterator[interface{}]{}
Expand Down
19 changes: 16 additions & 3 deletions pkg/phlaredb/block_querier.go
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,21 @@ func newStacktraceResolverV2(bucketReader phlareobj.Bucket) StacktraceDB {
}
}

func (b *singleBlockQuerier) Profiles() []parquet.RowGroup {
return b.profiles.file.RowGroups()
}

func (b *singleBlockQuerier) Index() IndexReader {
return b.index
}

func (b *singleBlockQuerier) Meta() block.Meta {
if b.meta == nil {
return block.Meta{}
}
return *b.meta
}

func (b *singleBlockQuerier) Close() error {
b.openLock.Lock()
defer func() {
Expand Down Expand Up @@ -933,9 +948,7 @@ func (b *singleBlockQuerier) SelectMatchingProfiles(ctx context.Context, params
}
}

var (
buf [][]parquet.Value
)
var buf [][]parquet.Value

pIt := query.NewBinaryJoinIterator(
0,
Expand Down
Loading