MailNews:Memory Bloat and Leak Tests: Difference between revisions

Jump to navigation Jump to search
Various updates for the initial method and future capabilities/wants
(Various updates for the initial method and future capabilities/wants)
Line 14: Line 14:
*# Total memory usage (aka bloat).
*# Total memory usage (aka bloat).
* Provide a consistent number from build to build where no source code has changed.
* Provide a consistent number from build to build where no source code has changed.
* Provide reasonable coverage for the normal activities that a user performs.


Note, it would be difficult to test every possible configuration/dialog, but the components that represent the main day-to-day usage within MailNews should be checked where possible.
== Method ==


== Method ==
Initial Method:
 
* Measure Leaks and Bloats, in a similar way to Firefox (using XPCOM_MEM_LEAK_LOG and --trace-malloc).
* The method of testing memory bloat and leaks will be the same sequence of events, using the same set of test data.
*# Startup Main Mail Window
*# Open Address Book Window, close Address Book Window
*# Open Message Compose Window, close Message Compose Window
*# Close Main Mail Window
 
To be added at a later stage:
 
* Large Message folders and selection thereof.
* Large Address Books.
* Sending/Receiving on different protocols (this would run best with local servers being setting up i.e. same physical hardware).


* The method of testing memory bloat and leaks will be the same, using the same run of test data.
== Results ==
* With a pre-defined profile run up:
*# MailNews
*# Address Book
*# Message Compose
* Measure Leaks and Bloats, in a similar way to Firefox.


TBD: Should we think about sending to different protocols - this would require extra servers being available.
Printed via standard tinderbox methods, these will consist of:


TBD: do we want to select different messages/folders, if so how?
* RLk
** Reference Count Leaks
* Lk
** Total Bytes malloc'ed and not free'd
* MH
** Maximum Heap size
* A
** Allocations - number of calls to malloc and friends.


== Pre-defined profile ==
== Pre-defined profile ==


Requirements:
Initial Setup:


* One POP3 account (Mails TBD)
* One POP3 account (Mails TBD)
* One Identity
* One Identity
* One SMTP server defined (not used)
* One SMTP server defined (not used)
* One Address Book where PAB has 1000 entries


TBD: Newsgroup/rss servers?
Future requirements/possibilities:


TBD: Global Inbox? - No?
* One Address Book where PAB has ~1000 entries
 
* Large Message folders
No servers will be checked for new mail on start-up.


08/04/2008: prefs.js created via TB with the above settings, the first section is for preferences included in tinderbox, the second section is ones which don't currently get set.
08/04/2008: prefs.js created via TB with the above settings, the first section is for preferences included in tinderbox, the second section is ones which don't currently get set.
Line 94: Line 108:
user_pref("mailnews.ui.threadpane.version", 6);
user_pref("mailnews.ui.threadpane.version", 6);
</pre>
</pre>
== Results ==
Printed via standard tinderbox methods.
canmove, Confirmed users, Bureaucrats and Sysops emeriti
3,628

edits

Navigation menu