[libsigcplusplus] test_size: Add comments with the results, so we can notice changes.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsigcplusplus] test_size: Add comments with the results, so we can notice changes.
- Date: Fri, 22 Apr 2016 08:05:49 +0000 (UTC)
commit e72e5f81810721098a8c144f753f73581cbac787
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Apr 21 20:15:32 2016 +0200
test_size: Add comments with the results, so we can notice changes.
tests/test_size.cc | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
---
diff --git a/tests/test_size.cc b/tests/test_size.cc
index 8c84ccb..7d74a7b 100644
--- a/tests/test_size.cc
+++ b/tests/test_size.cc
@@ -32,21 +32,47 @@ main(int argc, char* argv[])
{
std::cout << "sizes of public classes:" << std::endl;
+ //libsigc++ 2.10: 8
+ //libsigc++ 3.0: 8
std::cout << " trackable: " << sizeof(sigc::trackable) << std::endl;
+
+ //libsigc++ 2.10: 16
+ //libsigc++ 3.0: 16
std::cout << " slot<void()>: " << sizeof(sigc::slot<void()>) << std::endl;
+
+ //libsigc++ 2.10: 16
+ //libsigc++ 3.0: 16
std::cout << " signal<void()>: " << sizeof(sigc::signal<void()>) << std::endl;
+
+ //libsigc++ 2.10: 8
+ //libsigc++ 3.0: 8
std::cout << " connection: " << sizeof(sigc::connection) << std::endl;
+
std::cout << std::endl << "sizes of internal classes:" << std::endl;
+ //libsigc++ 2.10: 16
+ //libsigc++ 3.0: 16
std::cout << " trackable_callback: " << sizeof(sigc::internal::trackable_callback)
<< std::endl;
+
+ //libsigc++ 2.10: 32
+ //libsigc++ 3.0: 32
std::cout << " trackable_callback_list: " << sizeof(sigc::internal::trackable_callback_list)
<< std::endl;
+
+ //libsigc++ 2.10: 48
+ //libsigc++ 3.0: 48
std::cout << " slot_rep: " << sizeof(sigc::internal::slot_rep) << std::endl;
+
+ //libsigc++ 2.10: 72
+ //libsigc++ 3.0: 64
std::cout << " typed_slot_rep<mem_functor<void,A> >: "
<< sizeof(sigc::internal::typed_slot_rep<sigc::mem_functor<void (A::*)()>>)
<< std::endl;
+
+ //libsigc++ 2.10: 32
+ //libsigc++ 3.0: 32
std::cout << " signal_impl: " << sizeof(sigc::internal::signal_impl) << std::endl;
}
return util->get_result_and_delete_instance() ? EXIT_SUCCESS : EXIT_FAILURE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]