MailNews:Memory Bloat and Leak Tests: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(→‎Pre-defined profile: Add first set of possible preferences)
(Replaced content with '<small><< Back to MailNews:Performance Testing</small> '''NOTE: This page (and its related talk page) has been moved to the [https://…')
 
(26 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<small>[[MailNews:Performance Testing|<< Back to MailNews:Performance Testing]]</small>
<small>[[MailNews:Performance Testing|&lt;&lt; Back to MailNews:Performance Testing]]</small>  


__TOC__
'''NOTE: This page (and its related talk page) has been moved to the [https://developer.mozilla.org/en/MailNews/Leak_And_Bloat_Tests Mozilla Developer Center]. Please refer to that page for recent updates and discussions.'''
 
<div style="border: thin dotted #aaa; padding:5px;">
'''Please do not edit this page unless you are on the Thunderbird or SeaMonkey MailNews team. Your feedback and comments are welcomed on the [[MailNews_Talk:Memory_Bloat_and_Leak_Tests|discussion page]].'''</div><br>
 
''Note: MailNews here refers to either Thunderbird, or the Mail/Newsgroups/Address Book part of SeaMonkey''
 
== Aim ==
 
* To provide a continuous check within Mailnews and its sub-components for the following items:
*# Total memory leaks.
*# Total memory usage (aka bloat).
* Provide a consistent number from build to build where no source code has changed.
 
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 ==
 
* The method of testing memory bloat and leaks will be the same, using the same run of test data.
* With a pre-defined profile run up:
*# MailNews
*# Address Book
*# Message Compose
* Measure Leaks and Bloats, in a similar way to Firefox.
 
TBD: do we want to select different messages/folders, if so how?
 
== Pre-defined profile ==
 
Requirements:
 
* One POP3 account (Mails TBD)
* One Identity
* One SMTP server defined (not used)
* One Address Book where PAB has 1000 entries
 
TBD: Newsgroup/rss servers?
TBD: Global Inbox? - No?
 
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.
 
<pre>
user_pref("mail.account.account1.server", "server1");
user_pref("mail.account.account2.identities", "id1");
user_pref("mail.account.account2.server", "server2");
user_pref("mail.accountmanager.accounts", "account1,account2");
user_pref("mail.accountmanager.defaultaccount", "account2");
user_pref("mail.accountmanager.localfoldersserver", "server1");
user_pref("mail.identity.id1.fullName", "Tinderbox");
user_pref("mail.identity.id1.smtpServer", "smtp1");
user_pref("mail.identity.id1.useremail", "tinderbox@invalid.com");
user_pref("mail.identity.id1.valid", true);
user_pref("mail.root.none-rel", "[ProfD]Mail");
user_pref("mail.root.pop3-rel", "[ProfD]Mail");
user_pref("mail.server.server1.directory-rel", "[ProfD]Mail/Local Folders");
user_pref("mail.server.server1.hostname", "Local Folders");
user_pref("mail.server.server1.name", "Local Folders");
user_pref("mail.server.server1.type", "none");
user_pref("mail.server.server1.userName", "nobody");
user_pref("mail.server.server2.directory-rel", "[ProfD]Mail/tinderbox");
user_pref("mail.server.server2.download_on_biff", true);
user_pref("mail.server.server2.hostname", "tinderbox");
user_pref("mail.server.server2.login_at_startup", true);
user_pref("mail.server.server2.name", "tinderbox@invalid.com");
user_pref("mail.server.server2.type", "pop3");
user_pref("mail.server.server2.userName", "tinderbox");
user_pref("mail.smtp.defaultserver", "smtp1");
user_pref("mail.smtpserver.smtp1.hostname", "tinderbox");
user_pref("mail.smtpserver.smtp1.username", "tinderbox");
user_pref("mail.smtpservers", "smtp1");
user_pref("mail.startup.enabledMailCheckOnce", true);
user_pref("mailnews.start_page_override.mstone", "1.9pre");
</pre>
 
Preferences in generated profile, but not set:
 
<pre>
user_pref("mail.root.none", "/home/moztest/.thunderbird/t7i1txfw.minimum/Mail");
user_pref("mail.root.pop3", "/home/moztest/.thunderbird/t7i1txfw.minimum/Mail");
user_pref("mail.server.server1.directory", "/home/moztest/.thunderbird/t7i1txfw.minimum/Mail/Local Folders");
user_pref("mail.server.server2.directory", "/home/moztest/.thunderbird/t7i1txfw.minimum/Mail/tinderbox");
user_pref("mail.attachment.store.version", 1);
user_pref("mail.folder.views.version", 1);
user_pref("mail.spam.version", 1);
user_pref("mailnews.quotingPrefs.version", 1);
user_pref("mailnews.ui.threadpane.version", 6);
</pre>
 
== Results ==
 
Printed via standard tinderbox methods.

Latest revision as of 11:09, 14 January 2010

<< Back to MailNews:Performance Testing

NOTE: This page (and its related talk page) has been moved to the Mozilla Developer Center. Please refer to that page for recent updates and discussions.