Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Side by Side Diff: Source/core/frame/UseCounter.h

Issue 799403007: Add counters for all of the WebAudio nodes and important methods. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix typos Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/frame/UseCounter.cpp » ('j') | Source/core/frame/UseCounter.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google, Inc. All rights reserved. 2 * Copyright (C) 2012 Google, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 MixedContentPlugin = 616, 558 MixedContentPlugin = 616,
559 MixedContentPrefetch = 617, 559 MixedContentPrefetch = 617,
560 MixedContentVideo = 618, 560 MixedContentVideo = 618,
561 CORSCredentialedNullOriginAccessAllowed = 619, 561 CORSCredentialedNullOriginAccessAllowed = 619,
562 AudioListenerDopplerFactor = 620, 562 AudioListenerDopplerFactor = 620,
563 AudioListenerSpeedOfSound = 621, 563 AudioListenerSpeedOfSound = 621,
564 AudioListenerSetVelocity = 622, 564 AudioListenerSetVelocity = 622,
565 ShadowRootGetElementsByClassName = 623, 565 ShadowRootGetElementsByClassName = 623,
566 ShadowRootGetElementsByTagName = 624, 566 ShadowRootGetElementsByTagName = 624,
567 ShadowRootGetElementsByTagNameNS = 625, 567 ShadowRootGetElementsByTagNameNS = 625,
568 AudioContextCreateAnalyser = 626,
569 AudioContextCreateBiquadFilter = 627,
570 AudioContextCreateBufferSource = 628,
571 AudioContextCreateChannelMerger = 629,
572 AudioContextCreateChannelSplitter = 630,
573 AudioContextCreateConvolver = 631,
574 AudioContextCreateDelay = 632,
575 AudioContextCreateDynamicsCompressor = 633,
576 AudioContextCreateGain = 634,
577 AudioContextCreateMediaElementSource = 635,
578 AudioContextCreateMediaStreamDestination = 636,
579 AudioContextCreateMediaStreamSource = 637,
580 AudioContextCreateOscillator = 638,
581 AudioContextCreatePanner = 639,
582 AudioContextCreatePeriodicWave = 640,
583 AudioContextCreateScriptProcessor = 641,
584 AudioContextCreateStereoPanner = 642,
585 AudioContextCreateWaveShaper = 643,
586 AudioContextDecodeAudioData = 644,
587 AudioContextResume = 645,
588 AudioContextSuspend = 646,
589 AudioContext = 647,
590 OfflineAudioContext = 648,
591 PrefixedAudioContext = 649,
592 PrefixedOfflineAudioContext = 650,
568 593
569 // Add new features immediately above this line. Don't change assigned 594 // Add new features immediately above this line. Don't change assigned
570 // numbers of any item, and don't reuse removed slots. 595 // numbers of any item, and don't reuse removed slots.
571 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/ 596 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/
572 // to update the UMA mapping. 597 // to update the UMA mapping.
Ken Russell (switch to Gerrit) 2014/12/17 00:44:30 Please make sure to do this after this lands.
573 NumberOfFeatures, // This enum value must be last. 598 NumberOfFeatures, // This enum value must be last.
574 }; 599 };
575 600
576 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 601 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
577 static void count(const Frame*, Feature); 602 static void count(const Frame*, Feature);
578 static void count(const Document&, Feature); 603 static void count(const Document&, Feature);
579 // This doesn't count for ExecutionContexts for shared workers and service 604 // This doesn't count for ExecutionContexts for shared workers and service
580 // workers. 605 // workers.
581 static void count(const ExecutionContext*, Feature); 606 static void count(const ExecutionContext*, Feature);
582 // Use countIfNotPrivateScript() instead of count() if you don't want 607 // Use countIfNotPrivateScript() instead of count() if you don't want
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 666
642 void updateMeasurements(); 667 void updateMeasurements();
643 668
644 OwnPtr<BitVector> m_countBits; 669 OwnPtr<BitVector> m_countBits;
645 BitVector m_CSSFeatureBits; 670 BitVector m_CSSFeatureBits;
646 }; 671 };
647 672
648 } // namespace blink 673 } // namespace blink
649 674
650 #endif // UseCounter_h 675 #endif // UseCounter_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/frame/UseCounter.cpp » ('j') | Source/core/frame/UseCounter.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698