Changeset 225496 in webkit


Ignore:
Timestamp:
Dec 4, 2017 2:51:13 PM (6 years ago)
Author:
commit-queue@webkit.org
Message:

Exclude some more leak callstacks
https://bugs.webkit.org/show_bug.cgi?id=180379

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2017-12-04
Reviewed by Alexey Proskuryakov.

  • Scripts/webkitpy/port/leakdetector.py:

(LeakDetector._types_to_exclude_from_leaks):
(LeakDetector._callstacks_to_exclude_from_leaks):
(LeakDetector._leaks_args):
(LeakDetector._types_to_exlude_from_leaks): Deleted.

  • Scripts/webkitpy/port/leakdetector_unittest.py:

(LeakDetectorTest.test_leaks_args):

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r225470 r225496  
     12017-12-04  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Exclude some more leak callstacks
     4        https://bugs.webkit.org/show_bug.cgi?id=180379
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        * Scripts/webkitpy/port/leakdetector.py:
     9        (LeakDetector._types_to_exclude_from_leaks):
     10        (LeakDetector._callstacks_to_exclude_from_leaks):
     11        (LeakDetector._leaks_args):
     12        (LeakDetector._types_to_exlude_from_leaks): Deleted.
     13        * Scripts/webkitpy/port/leakdetector_unittest.py:
     14        (LeakDetectorTest.test_leaks_args):
     15
    1162017-12-03  Yusuke Suzuki  <utatane.tea@gmail.com>
    217
  • trunk/Tools/Scripts/webkitpy/port/leakdetector.py

    r225321 r225496  
    4949    # versions of the system frameworks that are being used by the leaks bots. Even though a leak has been
    5050    # fixed, it will be listed here until the bot has been updated with the newer frameworks.
    51     def _types_to_exlude_from_leaks(self):
     51    def _types_to_exclude_from_leaks(self):
    5252        # Currently we don't have any type excludes from OS leaks, but we will likely again in the future.
    5353        return []
     
    5656        callstacks = [
    5757            'WTF::BitVector::OutOfLineBits::create', # https://bugs.webkit.org/show_bug.cgi?id=121662
     58            'WebCore::createPrivateStorageSession', # <rdar://problem/35189565>
     59            'CIDeviceManagerStartMonitoring', # <rdar://problem/35711052>
     60            'NSSpellChecker init', # <rdar://problem/35434615>
    5861        ]
    5962        return callstacks
     
    6366        for callstack in self._callstacks_to_exclude_from_leaks():
    6467            leaks_args += ['--exclude-callstack=%s' % callstack]
    65         for excluded_type in self._types_to_exlude_from_leaks():
     68        for excluded_type in self._types_to_exclude_from_leaks():
    6669            leaks_args += ['--exclude-type=%s' % excluded_type]
    6770        leaks_args.append(pid)
  • trunk/Tools/Scripts/webkitpy/port/leakdetector_unittest.py

    r174136 r225496  
    5050        detector = self._make_detector()
    5151        detector._callstacks_to_exclude_from_leaks = lambda: ['foo bar', 'BAZ']
    52         detector._types_to_exlude_from_leaks = lambda: ['abcdefg', 'hi jklmno']
     52        detector._types_to_exclude_from_leaks = lambda: ['abcdefg', 'hi jklmno']
    5353        expected_args = ['--exclude-callstack=foo bar', '--exclude-callstack=BAZ', '--exclude-type=abcdefg', '--exclude-type=hi jklmno', 1234]
    5454        self.assertEqual(detector._leaks_args(1234), expected_args)
Note: See TracChangeset for help on using the changeset viewer.