Groups
Sign in
Groups
rocksdb
Conversations
About
Send feedback
Help
Feature Request / Java / PerfContext / Pretty print PerfContext in the Java API
79 views
Skip to first unread message
Alexey Vinogradov
unread,
Mar 12, 2024, 12:12:14 AM
Mar 12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rocksdb
Hello!
So, the C++ API has a method to print
PerfContext
as a human-readable output:
https://github.com/facebook/rocksdb/blob/179afd5bef7a043e10c9af322cf620ce11a7322f/monitoring/perf_context.cc#L264-L291
It would be nice to have the same method in the Java API:
https://github.com/facebook/rocksdb/blob/179afd5bef7a043e10c9af322cf620ce11a7322f/java/src/main/java/org/rocksdb/PerfContext.java#L8
. Something like:
public String toString(boolean excludeZeroCounters) {
// call to the JNI method which proxy to the C++ API
}
Alexey Vinogradov
unread,
Mar 24, 2024, 9:25:37 AM
Mar 24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rocksdb
I've created a PR for this:
https://github.com/facebook/rocksdb/pull/12473
вторник, 12 марта 2024 г. в 11:12:14 UTC+7, Alexey Vinogradov:
Alexey Vinogradov
unread,
Apr 9, 2024, 1:53:46 AM
Apr 9
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rocksdb
Merged
воскресенье, 24 марта 2024 г. в 20:25:37 UTC+7, Alexey Vinogradov:
Reply all
Reply to author
Forward
0 new messages