1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_ServoTraversalStatistics_h
8 #define mozilla_ServoTraversalStatistics_h
14 // Traversal statistics for Servo traversal.
16 // See style::context::PerThreadTraversalStatistics for
17 // meaning of these fields.
18 struct ServoTraversalStatistics
{
19 uint32_t mElementsTraversed
= 0;
20 uint32_t mElementsStyled
= 0;
21 uint32_t mElementsMatched
= 0;
22 uint32_t mStylesShared
= 0;
23 uint32_t mStylesReused
= 0;
26 static ServoTraversalStatistics sSingleton
;
29 } // namespace mozilla
31 #endif // mozilla_ServoTraversalStatistics_h