48 #undef ELECTRONEUM_DEFAULT_LOG_CATEGORY 49 #define ELECTRONEUM_DEFAULT_LOG_CATEGORY "debugtools.objectsizes" 56 for (
const auto &i: types)
57 std::cout <<
std::to_string(i.first) <<
"\t" << i.second << std::endl;
59 void add(
const char *type,
size_t size) { types.insert(std::make_pair(size, type)); }
61 std::multimap<size_t, const std::string> types;
63 #define SL(type) sl.add(#type, sizeof(type)) 65 int main(
int argc,
char* argv[])
74 SL(boost::asio::io_service);
75 SL(boost::asio::io_service::work);
76 SL(boost::asio::deadline_timer);
void mlog_configure(const std::string &filename_base, bool console, const std::size_t max_log_file_size=MAX_LOG_FILE_SIZE, const std::size_t max_log_files=MAX_LOG_FILES)
int main(int argc, char *argv[])
void add(const char *type, size_t size)
AddressBookRow - provides functions to manage address book.
This is the orginal cryptonote protocol network-events handler, modified by us.
A generic BlockchainDB exception.
std::string to_string(t_connection_type type)
base for connection, contains e.g. the ratelimit hooks