Hi Enrico,
Instead of trying function-evaluation c_str(), I decided to decode the information from fbstring_core fields. I got it working but have two questions for it.
type summary add -F data_formatter.folly_string_formatter -x “std::fbstring_core”
Here is the output:
fr v -T small
(std::string) small = “small”
fr v -T small.store_
(std::fbstring_core) small.store_ = None
fr v -T small.store_.ml_
(std::fbstring_core::MediumLarge) small.store_.ml_ = None
Questions:
- Even I only added formatter for std::fbstring_core why does it work for std::string?
- Why the later small.store_ and small.store_.ml_ will show summary None now? I would not expect the data formatter will happen to them.
Btw: here is the implementation of fbstring_core
https://github.com/facebook/folly/blob/master/folly/FBString.h
Thanks
Jeffrey