mirror of
https://github.com/ceph/ceph
synced 2025-04-01 23:02:17 +00:00
crimson/common/operation: demangle names in dump
Signed-off-by: Samuel Just <sjust@redhat.com>
This commit is contained in:
parent
6cf7c56a25
commit
7bc78f2de1
@ -7,6 +7,7 @@
|
||||
#include <array>
|
||||
#include <set>
|
||||
#include <vector>
|
||||
#include <boost/core/demangle.hpp>
|
||||
#include <boost/intrusive/list.hpp>
|
||||
#include <boost/intrusive_ptr.hpp>
|
||||
#include <boost/smart_ptr/intrusive_ref_counter.hpp>
|
||||
@ -121,7 +122,10 @@ struct TimeEvent : Event<T> {
|
||||
} internal_backend;
|
||||
|
||||
void dump(ceph::Formatter *f) const {
|
||||
detail::dump_time_event(typeid(T).name(), internal_backend.timestamp, f);
|
||||
auto demangled_name = boost::core::demangle(typeid(T).name());
|
||||
detail::dump_time_event(
|
||||
demangled_name.c_str(),
|
||||
internal_backend.timestamp, f);
|
||||
}
|
||||
|
||||
auto get_timestamp() const {
|
||||
@ -218,10 +222,12 @@ public:
|
||||
};
|
||||
|
||||
void dump(ceph::Formatter *f) const {
|
||||
detail::dump_blocking_event(typeid(T).name(),
|
||||
internal_backend.timestamp,
|
||||
internal_backend.blocker,
|
||||
f);
|
||||
auto demangled_name = boost::core::demangle(typeid(T).name());
|
||||
detail::dump_blocking_event(
|
||||
demangled_name.c_str(),
|
||||
internal_backend.timestamp,
|
||||
internal_backend.blocker,
|
||||
f);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user