DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

nsIPerformanceAlert

nsIPerformanceGroupDetails

nsIPerformanceObservable

nsIPerformanceObserver

nsIPerformanceSnapshot

nsIPerformanceStats

nsIPerformanceStatsService

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIPerformanceStats.idl
 */

#ifndef __gen_nsIPerformanceStats_h__
#define __gen_nsIPerformanceStats_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#ifndef __gen_nsIArray_h__
#include "nsIArray.h"
#endif

#ifndef __gen_nsIDOMWindow_h__
#include "nsIDOMWindow.h"
#endif

#include "js/Value.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif

/* starting interface:    nsIPerformanceGroupDetails */
#define NS_IPERFORMANCEGROUPDETAILS_IID_STR "994c56be-939a-4f20-8364-124f6422d86a"

#define NS_IPERFORMANCEGROUPDETAILS_IID \
  {0x994c56be, 0x939a, 0x4f20, \
    { 0x83, 0x64, 0x12, 0x4f, 0x64, 0x22, 0xd8, 0x6a }}

class NS_NO_VTABLE nsIPerformanceGroupDetails : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPERFORMANCEGROUPDETAILS_IID)

  /* readonly attribute AString groupId; */
  NS_IMETHOD GetGroupId(nsAString & aGroupId) = 0;

  /* readonly attribute AString name; */
  NS_IMETHOD GetName(nsAString & aName) = 0;

  /* readonly attribute AString addonId; */
  NS_IMETHOD GetAddonId(nsAString & aAddonId) = 0;

  /* readonly attribute uint64_t windowId; */
  NS_IMETHOD GetWindowId(uint64_t *aWindowId) = 0;

  /* readonly attribute bool isSystem; */
  NS_IMETHOD GetIsSystem(bool *aIsSystem) = 0;

  /* readonly attribute unsigned long long processId; */
  NS_IMETHOD GetProcessId(uint64_t *aProcessId) = 0;

  /* readonly attribute bool isContentProcess; */
  NS_IMETHOD GetIsContentProcess(bool *aIsContentProcess) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIPerformanceGroupDetails, NS_IPERFORMANCEGROUPDETAILS_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPERFORMANCEGROUPDETAILS \
  NS_IMETHOD GetGroupId(nsAString & aGroupId) override; \
  NS_IMETHOD GetName(nsAString & aName) override; \
  NS_IMETHOD GetAddonId(nsAString & aAddonId) override; \
  NS_IMETHOD GetWindowId(uint64_t *aWindowId) override; \
  NS_IMETHOD GetIsSystem(bool *aIsSystem) override; \
  NS_IMETHOD GetProcessId(uint64_t *aProcessId) override; \
  NS_IMETHOD GetIsContentProcess(bool *aIsContentProcess) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIPERFORMANCEGROUPDETAILS \
  nsresult GetGroupId(nsAString & aGroupId); \
  nsresult GetName(nsAString & aName); \
  nsresult GetAddonId(nsAString & aAddonId); \
  nsresult GetWindowId(uint64_t *aWindowId); \
  nsresult GetIsSystem(bool *aIsSystem); \
  nsresult GetProcessId(uint64_t *aProcessId); \
  nsresult GetIsContentProcess(bool *aIsContentProcess); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPERFORMANCEGROUPDETAILS(_to) \
  NS_IMETHOD GetGroupId(nsAString & aGroupId) override { return _to GetGroupId(aGroupId); } \
  NS_IMETHOD GetName(nsAString & aName) override { return _to GetName(aName); } \
  NS_IMETHOD GetAddonId(nsAString & aAddonId) override { return _to GetAddonId(aAddonId); } \
  NS_IMETHOD GetWindowId(uint64_t *aWindowId) override { return _to GetWindowId(aWindowId); } \
  NS_IMETHOD GetIsSystem(bool *aIsSystem) override { return _to GetIsSystem(aIsSystem); } \
  NS_IMETHOD GetProcessId(uint64_t *aProcessId) override { return _to GetProcessId(aProcessId); } \
  NS_IMETHOD GetIsContentProcess(bool *aIsContentProcess) override { return _to GetIsContentProcess(aIsContentProcess); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPERFORMANCEGROUPDETAILS(_to) \
  NS_IMETHOD GetGroupId(nsAString & aGroupId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGroupId(aGroupId); } \
  NS_IMETHOD GetName(nsAString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  NS_IMETHOD GetAddonId(nsAString & aAddonId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAddonId(aAddonId); } \
  NS_IMETHOD GetWindowId(uint64_t *aWindowId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWindowId(aWindowId); } \
  NS_IMETHOD GetIsSystem(bool *aIsSystem) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsSystem(aIsSystem); } \
  NS_IMETHOD GetProcessId(uint64_t *aProcessId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProcessId(aProcessId); } \
  NS_IMETHOD GetIsContentProcess(bool *aIsContentProcess) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsContentProcess(aIsContentProcess); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsPerformanceGroupDetails : public nsIPerformanceGroupDetails
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIPERFORMANCEGROUPDETAILS

  nsPerformanceGroupDetails();

private:
  ~nsPerformanceGroupDetails();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsPerformanceGroupDetails, nsIPerformanceGroupDetails)

nsPerformanceGroupDetails::nsPerformanceGroupDetails()
{
  /* member initializers and constructor code */
}

nsPerformanceGroupDetails::~nsPerformanceGroupDetails()
{
  /* destructor code */
}

/* readonly attribute AString groupId; */
NS_IMETHODIMP nsPerformanceGroupDetails::GetGroupId(nsAString & aGroupId)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute AString name; */
NS_IMETHODIMP nsPerformanceGroupDetails::GetName(nsAString & aName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute AString addonId; */
NS_IMETHODIMP nsPerformanceGroupDetails::GetAddonId(nsAString & aAddonId)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute uint64_t windowId; */
NS_IMETHODIMP nsPerformanceGroupDetails::GetWindowId(uint64_t *aWindowId)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute bool isSystem; */
NS_IMETHODIMP nsPerformanceGroupDetails::GetIsSystem(bool *aIsSystem)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute unsigned long long processId; */
NS_IMETHODIMP nsPerformanceGroupDetails::GetProcessId(uint64_t *aProcessId)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute bool isContentProcess; */
NS_IMETHODIMP nsPerformanceGroupDetails::GetIsContentProcess(bool *aIsContentProcess)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    nsIPerformanceStats */
#define NS_IPERFORMANCESTATS_IID_STR "8a635d4b-aa56-466b-9a7d-9f91ca9405ef"

#define NS_IPERFORMANCESTATS_IID \
  {0x8a635d4b, 0xaa56, 0x466b, \
    { 0x9a, 0x7d, 0x9f, 0x91, 0xca, 0x94, 0x05, 0xef }}

class NS_NO_VTABLE nsIPerformanceStats : public nsIPerformanceGroupDetails {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPERFORMANCESTATS_IID)

  /* readonly attribute unsigned long long totalUserTime; */
  NS_IMETHOD GetTotalUserTime(uint64_t *aTotalUserTime) = 0;

  /* readonly attribute unsigned long long totalSystemTime; */
  NS_IMETHOD GetTotalSystemTime(uint64_t *aTotalSystemTime) = 0;

  /* readonly attribute unsigned long long totalCPOWTime; */
  NS_IMETHOD GetTotalCPOWTime(uint64_t *aTotalCPOWTime) = 0;

  /* readonly attribute unsigned long long ticks; */
  NS_IMETHOD GetTicks(uint64_t *aTicks) = 0;

  /* void getDurations ([optional] out unsigned long aCount, [array, size_is (aCount), retval] out unsigned long long aNumberOfOccurrences); */
  NS_IMETHOD GetDurations(uint32_t *aCount, uint64_t **aNumberOfOccurrences) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIPerformanceStats, NS_IPERFORMANCESTATS_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPERFORMANCESTATS \
  NS_IMETHOD GetTotalUserTime(uint64_t *aTotalUserTime) override; \
  NS_IMETHOD GetTotalSystemTime(uint64_t *aTotalSystemTime) override; \
  NS_IMETHOD GetTotalCPOWTime(uint64_t *aTotalCPOWTime) override; \
  NS_IMETHOD GetTicks(uint64_t *aTicks) override; \
  NS_IMETHOD GetDurations(uint32_t *aCount, uint64_t **aNumberOfOccurrences) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIPERFORMANCESTATS \
  nsresult GetTotalUserTime(uint64_t *aTotalUserTime); \
  nsresult GetTotalSystemTime(uint64_t *aTotalSystemTime); \
  nsresult GetTotalCPOWTime(uint64_t *aTotalCPOWTime); \
  nsresult GetTicks(uint64_t *aTicks); \
  nsresult GetDurations(uint32_t *aCount, uint64_t **aNumberOfOccurrences); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPERFORMANCESTATS(_to) \
  NS_IMETHOD GetTotalUserTime(uint64_t *aTotalUserTime) override { return _to GetTotalUserTime(aTotalUserTime); } \
  NS_IMETHOD GetTotalSystemTime(uint64_t *aTotalSystemTime) override { return _to GetTotalSystemTime(aTotalSystemTime); } \
  NS_IMETHOD GetTotalCPOWTime(uint64_t *aTotalCPOWTime) override { return _to GetTotalCPOWTime(aTotalCPOWTime); } \
  NS_IMETHOD GetTicks(uint64_t *aTicks) override { return _to GetTicks(aTicks); } \
  NS_IMETHOD GetDurations(uint32_t *aCount, uint64_t **aNumberOfOccurrences) override { return _to GetDurations(aCount, aNumberOfOccurrences); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPERFORMANCESTATS(_to) \
  NS_IMETHOD GetTotalUserTime(uint64_t *aTotalUserTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTotalUserTime(aTotalUserTime); } \
  NS_IMETHOD GetTotalSystemTime(uint64_t *aTotalSystemTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTotalSystemTime(aTotalSystemTime); } \
  NS_IMETHOD GetTotalCPOWTime(uint64_t *aTotalCPOWTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTotalCPOWTime(aTotalCPOWTime); } \
  NS_IMETHOD GetTicks(uint64_t *aTicks) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTicks(aTicks); } \
  NS_IMETHOD GetDurations(uint32_t *aCount, uint64_t **aNumberOfOccurrences) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDurations(aCount, aNumberOfOccurrences); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsPerformanceStats : public nsIPerformanceStats
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIPERFORMANCESTATS

  nsPerformanceStats();

private:
  ~nsPerformanceStats();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsPerformanceStats, nsIPerformanceStats)

nsPerformanceStats::nsPerformanceStats()
{
  /* member initializers and constructor code */
}

nsPerformanceStats::~nsPerformanceStats()
{
  /* destructor code */
}

/* readonly attribute unsigned long long totalUserTime; */
NS_IMETHODIMP nsPerformanceStats::GetTotalUserTime(uint64_t *aTotalUserTime)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute unsigned long long totalSystemTime; */
NS_IMETHODIMP nsPerformanceStats::GetTotalSystemTime(uint64_t *aTotalSystemTime)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute unsigned long long totalCPOWTime; */
NS_IMETHODIMP nsPerformanceStats::GetTotalCPOWTime(uint64_t *aTotalCPOWTime)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute unsigned long long ticks; */
NS_IMETHODIMP nsPerformanceStats::GetTicks(uint64_t *aTicks)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void getDurations ([optional] out unsigned long aCount, [array, size_is (aCount), retval] out unsigned long long aNumberOfOccurrences); */
NS_IMETHODIMP nsPerformanceStats::GetDurations(uint32_t *aCount, uint64_t **aNumberOfOccurrences)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    nsIPerformanceSnapshot */
#define NS_IPERFORMANCESNAPSHOT_IID_STR "13cc235b-739e-4690-b0e3-d89cbe036a93"

#define NS_IPERFORMANCESNAPSHOT_IID \
  {0x13cc235b, 0x739e, 0x4690, \
    { 0xb0, 0xe3, 0xd8, 0x9c, 0xbe, 0x03, 0x6a, 0x93 }}

class NS_NO_VTABLE nsIPerformanceSnapshot : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPERFORMANCESNAPSHOT_IID)

  /* nsIArray getComponentsData (); */
  NS_IMETHOD GetComponentsData(nsIArray * *_retval) = 0;

  /* nsIPerformanceStats getProcessData (); */
  NS_IMETHOD GetProcessData(nsIPerformanceStats * *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIPerformanceSnapshot, NS_IPERFORMANCESNAPSHOT_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPERFORMANCESNAPSHOT \
  NS_IMETHOD GetComponentsData(nsIArray * *_retval) override; \
  NS_IMETHOD GetProcessData(nsIPerformanceStats * *_retval) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIPERFORMANCESNAPSHOT \
  nsresult GetComponentsData(nsIArray * *_retval); \
  nsresult GetProcessData(nsIPerformanceStats * *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPERFORMANCESNAPSHOT(_to) \
  NS_IMETHOD GetComponentsData(nsIArray * *_retval) override { return _to GetComponentsData(_retval); } \
  NS_IMETHOD GetProcessData(nsIPerformanceStats * *_retval) override { return _to GetProcessData(_retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPERFORMANCESNAPSHOT(_to) \
  NS_IMETHOD GetComponentsData(nsIArray * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetComponentsData(_retval); } \
  NS_IMETHOD GetProcessData(nsIPerformanceStats * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProcessData(_retval); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsPerformanceSnapshot : public nsIPerformanceSnapshot
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIPERFORMANCESNAPSHOT

  nsPerformanceSnapshot();

private:
  ~nsPerformanceSnapshot();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsPerformanceSnapshot, nsIPerformanceSnapshot)

nsPerformanceSnapshot::nsPerformanceSnapshot()
{
  /* member initializers and constructor code */
}

nsPerformanceSnapshot::~nsPerformanceSnapshot()
{
  /* destructor code */
}

/* nsIArray getComponentsData (); */
NS_IMETHODIMP nsPerformanceSnapshot::GetComponentsData(nsIArray * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIPerformanceStats getProcessData (); */
NS_IMETHODIMP nsPerformanceSnapshot::GetProcessData(nsIPerformanceStats * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    nsIPerformanceAlert */
#define NS_IPERFORMANCEALERT_IID_STR "a85706ab-d703-4687-8865-78cd771eab93"

#define NS_IPERFORMANCEALERT_IID \
  {0xa85706ab, 0xd703, 0x4687, \
    { 0x88, 0x65, 0x78, 0xcd, 0x77, 0x1e, 0xab, 0x93 }}

class NS_NO_VTABLE nsIPerformanceAlert : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPERFORMANCEALERT_IID)

  enum {
    REASON_SLOWDOWN = 1U,
    REASON_JANK_IN_ANIMATION = 2U,
    REASON_JANK_IN_INPUT = 4U
  };

  /* readonly attribute unsigned long reason; */
  NS_IMETHOD GetReason(uint32_t *aReason) = 0;

  /* readonly attribute unsigned long long highestJank; */
  NS_IMETHOD GetHighestJank(uint64_t *aHighestJank) = 0;

  /* readonly attribute unsigned long long highestCPOW; */
  NS_IMETHOD GetHighestCPOW(uint64_t *aHighestCPOW) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIPerformanceAlert, NS_IPERFORMANCEALERT_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPERFORMANCEALERT \
  NS_IMETHOD GetReason(uint32_t *aReason) override; \
  NS_IMETHOD GetHighestJank(uint64_t *aHighestJank) override; \
  NS_IMETHOD GetHighestCPOW(uint64_t *aHighestCPOW) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIPERFORMANCEALERT \
  nsresult GetReason(uint32_t *aReason); \
  nsresult GetHighestJank(uint64_t *aHighestJank); \
  nsresult GetHighestCPOW(uint64_t *aHighestCPOW); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPERFORMANCEALERT(_to) \
  NS_IMETHOD GetReason(uint32_t *aReason) override { return _to GetReason(aReason); } \
  NS_IMETHOD GetHighestJank(uint64_t *aHighestJank) override { return _to GetHighestJank(aHighestJank); } \
  NS_IMETHOD GetHighestCPOW(uint64_t *aHighestCPOW) override { return _to GetHighestCPOW(aHighestCPOW); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPERFORMANCEALERT(_to) \
  NS_IMETHOD GetReason(uint32_t *aReason) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReason(aReason); } \
  NS_IMETHOD GetHighestJank(uint64_t *aHighestJank) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHighestJank(aHighestJank); } \
  NS_IMETHOD GetHighestCPOW(uint64_t *aHighestCPOW) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHighestCPOW(aHighestCPOW); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsPerformanceAlert : public nsIPerformanceAlert
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIPERFORMANCEALERT

  nsPerformanceAlert();

private:
  ~nsPerformanceAlert();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsPerformanceAlert, nsIPerformanceAlert)

nsPerformanceAlert::nsPerformanceAlert()
{
  /* member initializers and constructor code */
}

nsPerformanceAlert::~nsPerformanceAlert()
{
  /* destructor code */
}

/* readonly attribute unsigned long reason; */
NS_IMETHODIMP nsPerformanceAlert::GetReason(uint32_t *aReason)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute unsigned long long highestJank; */
NS_IMETHODIMP nsPerformanceAlert::GetHighestJank(uint64_t *aHighestJank)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute unsigned long long highestCPOW; */
NS_IMETHODIMP nsPerformanceAlert::GetHighestCPOW(uint64_t *aHighestCPOW)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    nsIPerformanceObserver */
#define NS_IPERFORMANCEOBSERVER_IID_STR "b746a929-3fec-420b-8ed8-c35d71995e05"

#define NS_IPERFORMANCEOBSERVER_IID \
  {0xb746a929, 0x3fec, 0x420b, \
    { 0x8e, 0xd8, 0xc3, 0x5d, 0x71, 0x99, 0x5e, 0x05 }}

class NS_NO_VTABLE nsIPerformanceObserver : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPERFORMANCEOBSERVER_IID)

  /* void observe (in nsIPerformanceGroupDetails target, in nsIPerformanceAlert alert); */
  NS_IMETHOD Observe(nsIPerformanceGroupDetails *target, nsIPerformanceAlert *alert) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIPerformanceObserver, NS_IPERFORMANCEOBSERVER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPERFORMANCEOBSERVER \
  NS_IMETHOD Observe(nsIPerformanceGroupDetails *target, nsIPerformanceAlert *alert) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIPERFORMANCEOBSERVER \
  nsresult Observe(nsIPerformanceGroupDetails *target, nsIPerformanceAlert *alert); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPERFORMANCEOBSERVER(_to) \
  NS_IMETHOD Observe(nsIPerformanceGroupDetails *target, nsIPerformanceAlert *alert) override { return _to Observe(target, alert); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPERFORMANCEOBSERVER(_to) \
  NS_IMETHOD Observe(nsIPerformanceGroupDetails *target, nsIPerformanceAlert *alert) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Observe(target, alert); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsPerformanceObserver : public nsIPerformanceObserver
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIPERFORMANCEOBSERVER

  nsPerformanceObserver();

private:
  ~nsPerformanceObserver();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsPerformanceObserver, nsIPerformanceObserver)

nsPerformanceObserver::nsPerformanceObserver()
{
  /* member initializers and constructor code */
}

nsPerformanceObserver::~nsPerformanceObserver()
{
  /* destructor code */
}

/* void observe (in nsIPerformanceGroupDetails target, in nsIPerformanceAlert alert); */
NS_IMETHODIMP nsPerformanceObserver::Observe(nsIPerformanceGroupDetails *target, nsIPerformanceAlert *alert)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    nsIPerformanceObservable */
#define NS_IPERFORMANCEOBSERVABLE_IID_STR "b85720d0-e328-4342-9e46-8ca1acf8c70e"

#define NS_IPERFORMANCEOBSERVABLE_IID \
  {0xb85720d0, 0xe328, 0x4342, \
    { 0x9e, 0x46, 0x8c, 0xa1, 0xac, 0xf8, 0xc7, 0x0e }}

class NS_NO_VTABLE nsIPerformanceObservable : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPERFORMANCEOBSERVABLE_IID)

  /* readonly attribute nsIPerformanceGroupDetails target; */
  NS_IMETHOD GetTarget(nsIPerformanceGroupDetails * *aTarget) = 0;

  /* void addJankObserver (in nsIPerformanceObserver observer); */
  NS_IMETHOD AddJankObserver(nsIPerformanceObserver *observer) = 0;

  /* void removeJankObserver (in nsIPerformanceObserver observer); */
  NS_IMETHOD RemoveJankObserver(nsIPerformanceObserver *observer) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIPerformanceObservable, NS_IPERFORMANCEOBSERVABLE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPERFORMANCEOBSERVABLE \
  NS_IMETHOD GetTarget(nsIPerformanceGroupDetails * *aTarget) override; \
  NS_IMETHOD AddJankObserver(nsIPerformanceObserver *observer) override; \
  NS_IMETHOD RemoveJankObserver(nsIPerformanceObserver *observer) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIPERFORMANCEOBSERVABLE \
  nsresult GetTarget(nsIPerformanceGroupDetails * *aTarget); \
  nsresult AddJankObserver(nsIPerformanceObserver *observer); \
  nsresult RemoveJankObserver(nsIPerformanceObserver *observer); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPERFORMANCEOBSERVABLE(_to) \
  NS_IMETHOD GetTarget(nsIPerformanceGroupDetails * *aTarget) override { return _to GetTarget(aTarget); } \
  NS_IMETHOD AddJankObserver(nsIPerformanceObserver *observer) override { return _to AddJankObserver(observer); } \
  NS_IMETHOD RemoveJankObserver(nsIPerformanceObserver *observer) override { return _to RemoveJankObserver(observer); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPERFORMANCEOBSERVABLE(_to) \
  NS_IMETHOD GetTarget(nsIPerformanceGroupDetails * *aTarget) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTarget(aTarget); } \
  NS_IMETHOD AddJankObserver(nsIPerformanceObserver *observer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddJankObserver(observer); } \
  NS_IMETHOD RemoveJankObserver(nsIPerformanceObserver *observer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveJankObserver(observer); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsPerformanceObservable : public nsIPerformanceObservable
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIPERFORMANCEOBSERVABLE

  nsPerformanceObservable();

private:
  ~nsPerformanceObservable();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsPerformanceObservable, nsIPerformanceObservable)

nsPerformanceObservable::nsPerformanceObservable()
{
  /* member initializers and constructor code */
}

nsPerformanceObservable::~nsPerformanceObservable()
{
  /* destructor code */
}

/* readonly attribute nsIPerformanceGroupDetails target; */
NS_IMETHODIMP nsPerformanceObservable::GetTarget(nsIPerformanceGroupDetails * *aTarget)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void addJankObserver (in nsIPerformanceObserver observer); */
NS_IMETHODIMP nsPerformanceObservable::AddJankObserver(nsIPerformanceObserver *observer)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeJankObserver (in nsIPerformanceObserver observer); */
NS_IMETHODIMP nsPerformanceObservable::RemoveJankObserver(nsIPerformanceObserver *observer)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    nsIPerformanceStatsService */
#define NS_IPERFORMANCESTATSSERVICE_IID_STR "505bc42e-be38-4a53-baba-92cb33690cde"

#define NS_IPERFORMANCESTATSSERVICE_IID \
  {0x505bc42e, 0xbe38, 0x4a53, \
    { 0xba, 0xba, 0x92, 0xcb, 0x33, 0x69, 0x0c, 0xde }}

class NS_NO_VTABLE nsIPerformanceStatsService : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPERFORMANCESTATSSERVICE_IID)

  /* [implicit_jscontext] attribute bool isMonitoringCPOW; */
  NS_IMETHOD GetIsMonitoringCPOW(JSContext* cx, bool *aIsMonitoringCPOW) = 0;
  NS_IMETHOD SetIsMonitoringCPOW(JSContext* cx, bool aIsMonitoringCPOW) = 0;

  /* [implicit_jscontext] attribute bool isMonitoringJank; */
  NS_IMETHOD GetIsMonitoringJank(JSContext* cx, bool *aIsMonitoringJank) = 0;
  NS_IMETHOD SetIsMonitoringJank(JSContext* cx, bool aIsMonitoringJank) = 0;

  /* [implicit_jscontext] attribute bool isMonitoringPerCompartment; */
  NS_IMETHOD GetIsMonitoringPerCompartment(JSContext* cx, bool *aIsMonitoringPerCompartment) = 0;
  NS_IMETHOD SetIsMonitoringPerCompartment(JSContext* cx, bool aIsMonitoringPerCompartment) = 0;

  /* [implicit_jscontext] nsIPerformanceSnapshot getSnapshot (); */
  NS_IMETHOD GetSnapshot(JSContext* cx, nsIPerformanceSnapshot * *_retval) = 0;

  /* attribute unsigned long long jankAlertThreshold; */
  NS_IMETHOD GetJankAlertThreshold(uint64_t *aJankAlertThreshold) = 0;
  NS_IMETHOD SetJankAlertThreshold(uint64_t aJankAlertThreshold) = 0;

  /* attribute short animationJankLevelThreshold; */
  NS_IMETHOD GetAnimationJankLevelThreshold(int16_t *aAnimationJankLevelThreshold) = 0;
  NS_IMETHOD SetAnimationJankLevelThreshold(int16_t aAnimationJankLevelThreshold) = 0;

  /* attribute unsigned long long userInputDelayThreshold; */
  NS_IMETHOD GetUserInputDelayThreshold(uint64_t *aUserInputDelayThreshold) = 0;
  NS_IMETHOD SetUserInputDelayThreshold(uint64_t aUserInputDelayThreshold) = 0;

  /* attribute unsigned long jankAlertBufferingDelay; */
  NS_IMETHOD GetJankAlertBufferingDelay(uint32_t *aJankAlertBufferingDelay) = 0;
  NS_IMETHOD SetJankAlertBufferingDelay(uint32_t aJankAlertBufferingDelay) = 0;

  /* nsIPerformanceObservable getObservableAddon (in AString addonId); */
  NS_IMETHOD GetObservableAddon(const nsAString & addonId, nsIPerformanceObservable * *_retval) = 0;

  /* nsIPerformanceObservable getObservableWindow (in unsigned long long windowId); */
  NS_IMETHOD GetObservableWindow(uint64_t windowId, nsIPerformanceObservable * *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIPerformanceStatsService, NS_IPERFORMANCESTATSSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPERFORMANCESTATSSERVICE \
  NS_IMETHOD GetIsMonitoringCPOW(JSContext* cx, bool *aIsMonitoringCPOW) override; \
  NS_IMETHOD SetIsMonitoringCPOW(JSContext* cx, bool aIsMonitoringCPOW) override; \
  NS_IMETHOD GetIsMonitoringJank(JSContext* cx, bool *aIsMonitoringJank) override; \
  NS_IMETHOD SetIsMonitoringJank(JSContext* cx, bool aIsMonitoringJank) override; \
  NS_IMETHOD GetIsMonitoringPerCompartment(JSContext* cx, bool *aIsMonitoringPerCompartment) override; \
  NS_IMETHOD SetIsMonitoringPerCompartment(JSContext* cx, bool aIsMonitoringPerCompartment) override; \
  NS_IMETHOD GetSnapshot(JSContext* cx, nsIPerformanceSnapshot * *_retval) override; \
  NS_IMETHOD GetJankAlertThreshold(uint64_t *aJankAlertThreshold) override; \
  NS_IMETHOD SetJankAlertThreshold(uint64_t aJankAlertThreshold) override; \
  NS_IMETHOD GetAnimationJankLevelThreshold(int16_t *aAnimationJankLevelThreshold) override; \
  NS_IMETHOD SetAnimationJankLevelThreshold(int16_t aAnimationJankLevelThreshold) override; \
  NS_IMETHOD GetUserInputDelayThreshold(uint64_t *aUserInputDelayThreshold) override; \
  NS_IMETHOD SetUserInputDelayThreshold(uint64_t aUserInputDelayThreshold) override; \
  NS_IMETHOD GetJankAlertBufferingDelay(uint32_t *aJankAlertBufferingDelay) override; \
  NS_IMETHOD SetJankAlertBufferingDelay(uint32_t aJankAlertBufferingDelay) override; \
  NS_IMETHOD GetObservableAddon(const nsAString & addonId, nsIPerformanceObservable * *_retval) override; \
  NS_IMETHOD GetObservableWindow(uint64_t windowId, nsIPerformanceObservable * *_retval) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIPERFORMANCESTATSSERVICE \
  nsresult GetIsMonitoringCPOW(JSContext* cx, bool *aIsMonitoringCPOW); \
  nsresult SetIsMonitoringCPOW(JSContext* cx, bool aIsMonitoringCPOW); \
  nsresult GetIsMonitoringJank(JSContext* cx, bool *aIsMonitoringJank); \
  nsresult SetIsMonitoringJank(JSContext* cx, bool aIsMonitoringJank); \
  nsresult GetIsMonitoringPerCompartment(JSContext* cx, bool *aIsMonitoringPerCompartment); \
  nsresult SetIsMonitoringPerCompartment(JSContext* cx, bool aIsMonitoringPerCompartment); \
  nsresult GetSnapshot(JSContext* cx, nsIPerformanceSnapshot * *_retval); \
  nsresult GetJankAlertThreshold(uint64_t *aJankAlertThreshold); \
  nsresult SetJankAlertThreshold(uint64_t aJankAlertThreshold); \
  nsresult GetAnimationJankLevelThreshold(int16_t *aAnimationJankLevelThreshold); \
  nsresult SetAnimationJankLevelThreshold(int16_t aAnimationJankLevelThreshold); \
  nsresult GetUserInputDelayThreshold(uint64_t *aUserInputDelayThreshold); \
  nsresult SetUserInputDelayThreshold(uint64_t aUserInputDelayThreshold); \
  nsresult GetJankAlertBufferingDelay(uint32_t *aJankAlertBufferingDelay); \
  nsresult SetJankAlertBufferingDelay(uint32_t aJankAlertBufferingDelay); \
  nsresult GetObservableAddon(const nsAString & addonId, nsIPerformanceObservable * *_retval); \
  nsresult GetObservableWindow(uint64_t windowId, nsIPerformanceObservable * *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPERFORMANCESTATSSERVICE(_to) \
  NS_IMETHOD GetIsMonitoringCPOW(JSContext* cx, bool *aIsMonitoringCPOW) override { return _to GetIsMonitoringCPOW(cx, aIsMonitoringCPOW); } \
  NS_IMETHOD SetIsMonitoringCPOW(JSContext* cx, bool aIsMonitoringCPOW) override { return _to SetIsMonitoringCPOW(cx, aIsMonitoringCPOW); } \
  NS_IMETHOD GetIsMonitoringJank(JSContext* cx, bool *aIsMonitoringJank) override { return _to GetIsMonitoringJank(cx, aIsMonitoringJank); } \
  NS_IMETHOD SetIsMonitoringJank(JSContext* cx, bool aIsMonitoringJank) override { return _to SetIsMonitoringJank(cx, aIsMonitoringJank); } \
  NS_IMETHOD GetIsMonitoringPerCompartment(JSContext* cx, bool *aIsMonitoringPerCompartment) override { return _to GetIsMonitoringPerCompartment(cx, aIsMonitoringPerCompartment); } \
  NS_IMETHOD SetIsMonitoringPerCompartment(JSContext* cx, bool aIsMonitoringPerCompartment) override { return _to SetIsMonitoringPerCompartment(cx, aIsMonitoringPerCompartment); } \
  NS_IMETHOD GetSnapshot(JSContext* cx, nsIPerformanceSnapshot * *_retval) override { return _to GetSnapshot(cx, _retval); } \
  NS_IMETHOD GetJankAlertThreshold(uint64_t *aJankAlertThreshold) override { return _to GetJankAlertThreshold(aJankAlertThreshold); } \
  NS_IMETHOD SetJankAlertThreshold(uint64_t aJankAlertThreshold) override { return _to SetJankAlertThreshold(aJankAlertThreshold); } \
  NS_IMETHOD GetAnimationJankLevelThreshold(int16_t *aAnimationJankLevelThreshold) override { return _to GetAnimationJankLevelThreshold(aAnimationJankLevelThreshold); } \
  NS_IMETHOD SetAnimationJankLevelThreshold(int16_t aAnimationJankLevelThreshold) override { return _to SetAnimationJankLevelThreshold(aAnimationJankLevelThreshold); } \
  NS_IMETHOD GetUserInputDelayThreshold(uint64_t *aUserInputDelayThreshold) override { return _to GetUserInputDelayThreshold(aUserInputDelayThreshold); } \
  NS_IMETHOD SetUserInputDelayThreshold(uint64_t aUserInputDelayThreshold) override { return _to SetUserInputDelayThreshold(aUserInputDelayThreshold); } \
  NS_IMETHOD GetJankAlertBufferingDelay(uint32_t *aJankAlertBufferingDelay) override { return _to GetJankAlertBufferingDelay(aJankAlertBufferingDelay); } \
  NS_IMETHOD SetJankAlertBufferingDelay(uint32_t aJankAlertBufferingDelay) override { return _to SetJankAlertBufferingDelay(aJankAlertBufferingDelay); } \
  NS_IMETHOD GetObservableAddon(const nsAString & addonId, nsIPerformanceObservable * *_retval) override { return _to GetObservableAddon(addonId, _retval); } \
  NS_IMETHOD GetObservableWindow(uint64_t windowId, nsIPerformanceObservable * *_retval) override { return _to GetObservableWindow(windowId, _retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPERFORMANCESTATSSERVICE(_to) \
  NS_IMETHOD GetIsMonitoringCPOW(JSContext* cx, bool *aIsMonitoringCPOW) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsMonitoringCPOW(cx, aIsMonitoringCPOW); } \
  NS_IMETHOD SetIsMonitoringCPOW(JSContext* cx, bool aIsMonitoringCPOW) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsMonitoringCPOW(cx, aIsMonitoringCPOW); } \
  NS_IMETHOD GetIsMonitoringJank(JSContext* cx, bool *aIsMonitoringJank) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsMonitoringJank(cx, aIsMonitoringJank); } \
  NS_IMETHOD SetIsMonitoringJank(JSContext* cx, bool aIsMonitoringJank) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsMonitoringJank(cx, aIsMonitoringJank); } \
  NS_IMETHOD GetIsMonitoringPerCompartment(JSContext* cx, bool *aIsMonitoringPerCompartment) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsMonitoringPerCompartment(cx, aIsMonitoringPerCompartment); } \
  NS_IMETHOD SetIsMonitoringPerCompartment(JSContext* cx, bool aIsMonitoringPerCompartment) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsMonitoringPerCompartment(cx, aIsMonitoringPerCompartment); } \
  NS_IMETHOD GetSnapshot(JSContext* cx, nsIPerformanceSnapshot * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSnapshot(cx, _retval); } \
  NS_IMETHOD GetJankAlertThreshold(uint64_t *aJankAlertThreshold) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetJankAlertThreshold(aJankAlertThreshold); } \
  NS_IMETHOD SetJankAlertThreshold(uint64_t aJankAlertThreshold) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetJankAlertThreshold(aJankAlertThreshold); } \
  NS_IMETHOD GetAnimationJankLevelThreshold(int16_t *aAnimationJankLevelThreshold) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAnimationJankLevelThreshold(aAnimationJankLevelThreshold); } \
  NS_IMETHOD SetAnimationJankLevelThreshold(int16_t aAnimationJankLevelThreshold) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAnimationJankLevelThreshold(aAnimationJankLevelThreshold); } \
  NS_IMETHOD GetUserInputDelayThreshold(uint64_t *aUserInputDelayThreshold) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUserInputDelayThreshold(aUserInputDelayThreshold); } \
  NS_IMETHOD SetUserInputDelayThreshold(uint64_t aUserInputDelayThreshold) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUserInputDelayThreshold(aUserInputDelayThreshold); } \
  NS_IMETHOD GetJankAlertBufferingDelay(uint32_t *aJankAlertBufferingDelay) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetJankAlertBufferingDelay(aJankAlertBufferingDelay); } \
  NS_IMETHOD SetJankAlertBufferingDelay(uint32_t aJankAlertBufferingDelay) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetJankAlertBufferingDelay(aJankAlertBufferingDelay); } \
  NS_IMETHOD GetObservableAddon(const nsAString & addonId, nsIPerformanceObservable * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetObservableAddon(addonId, _retval); } \
  NS_IMETHOD GetObservableWindow(uint64_t windowId, nsIPerformanceObservable * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetObservableWindow(windowId, _retval); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsPerformanceStatsService : public nsIPerformanceStatsService
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIPERFORMANCESTATSSERVICE

  nsPerformanceStatsService();

private:
  ~nsPerformanceStatsService();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsPerformanceStatsService, nsIPerformanceStatsService)

nsPerformanceStatsService::nsPerformanceStatsService()
{
  /* member initializers and constructor code */
}

nsPerformanceStatsService::~nsPerformanceStatsService()
{
  /* destructor code */
}

/* [implicit_jscontext] attribute bool isMonitoringCPOW; */
NS_IMETHODIMP nsPerformanceStatsService::GetIsMonitoringCPOW(JSContext* cx, bool *aIsMonitoringCPOW)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsPerformanceStatsService::SetIsMonitoringCPOW(JSContext* cx, bool aIsMonitoringCPOW)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [implicit_jscontext] attribute bool isMonitoringJank; */
NS_IMETHODIMP nsPerformanceStatsService::GetIsMonitoringJank(JSContext* cx, bool *aIsMonitoringJank)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsPerformanceStatsService::SetIsMonitoringJank(JSContext* cx, bool aIsMonitoringJank)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [implicit_jscontext] attribute bool isMonitoringPerCompartment; */
NS_IMETHODIMP nsPerformanceStatsService::GetIsMonitoringPerCompartment(JSContext* cx, bool *aIsMonitoringPerCompartment)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsPerformanceStatsService::SetIsMonitoringPerCompartment(JSContext* cx, bool aIsMonitoringPerCompartment)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [implicit_jscontext] nsIPerformanceSnapshot getSnapshot (); */
NS_IMETHODIMP nsPerformanceStatsService::GetSnapshot(JSContext* cx, nsIPerformanceSnapshot * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute unsigned long long jankAlertThreshold; */
NS_IMETHODIMP nsPerformanceStatsService::GetJankAlertThreshold(uint64_t *aJankAlertThreshold)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsPerformanceStatsService::SetJankAlertThreshold(uint64_t aJankAlertThreshold)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute short animationJankLevelThreshold; */
NS_IMETHODIMP nsPerformanceStatsService::GetAnimationJankLevelThreshold(int16_t *aAnimationJankLevelThreshold)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsPerformanceStatsService::SetAnimationJankLevelThreshold(int16_t aAnimationJankLevelThreshold)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute unsigned long long userInputDelayThreshold; */
NS_IMETHODIMP nsPerformanceStatsService::GetUserInputDelayThreshold(uint64_t *aUserInputDelayThreshold)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsPerformanceStatsService::SetUserInputDelayThreshold(uint64_t aUserInputDelayThreshold)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute unsigned long jankAlertBufferingDelay; */
NS_IMETHODIMP nsPerformanceStatsService::GetJankAlertBufferingDelay(uint32_t *aJankAlertBufferingDelay)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsPerformanceStatsService::SetJankAlertBufferingDelay(uint32_t aJankAlertBufferingDelay)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIPerformanceObservable getObservableAddon (in AString addonId); */
NS_IMETHODIMP nsPerformanceStatsService::GetObservableAddon(const nsAString & addonId, nsIPerformanceObservable * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIPerformanceObservable getObservableWindow (in unsigned long long windowId); */
NS_IMETHODIMP nsPerformanceStatsService::GetObservableWindow(uint64_t windowId, nsIPerformanceObservable * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif

#define NS_TOOLKIT_PERFORMANCESTATSSERVICE_CID {0xfd7435d4, 0x9ec4, 0x4699, \
      {0xad, 0xd4, 0x1b, 0xe8, 0x3d, 0xd6, 0x8e, 0xf3} }
#define NS_TOOLKIT_PERFORMANCESTATSSERVICE_CONTRACTID "@mozilla.org/toolkit/performance-stats-service;1"

#endif /* __gen_nsIPerformanceStats_h__ */