MethodMetricsTest3.java revision 12651:6ef01bd40ce2
1179335Syongari/* 2179335Syongari * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. 3179335Syongari * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4179335Syongari * 5179335Syongari * This code is free software; you can redistribute it and/or modify it 6179335Syongari * under the terms of the GNU General Public License version 2 only, as 7179335Syongari * published by the Free Software Foundation. 8179335Syongari * 9179335Syongari * This code is distributed in the hope that it will be useful, but WITHOUT 10179335Syongari * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11179335Syongari * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12179335Syongari * version 2 for more details (a copy is included in the LICENSE file that 13179335Syongari * accompanied this code). 14179335Syongari * 15179335Syongari * You should have received a copy of the GNU General Public License version 16179335Syongari * 2 along with this work; if not, write to the Free Software Foundation, 17179335Syongari * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18179335Syongari * 19179335Syongari * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20179335Syongari * or visit www.oracle.com if you need additional information or have any 21179335Syongari * questions. 22179335Syongari */ 23179335Syongaripackage org.graalvm.compiler.core.test.debug; 24179335Syongari 25179335Syongariimport org.junit.Test; 26179335Syongari 27179335Syongariimport org.graalvm.compiler.debug.DebugConfig; 28179335Syongariimport org.graalvm.compiler.phases.Phase; 29179335Syongari 30179335Syongaripublic class MethodMetricsTest3 extends MethodMetricsTest { 31179335Syongari 32179335Syongari @Override 33179335Syongari protected Phase additionalPhase() { 34179335Syongari return new MethodMetricPhases.CountingMulPhase(); 35179335Syongari } 36179335Syongari 37179335Syongari @Override 38179335Syongari DebugConfig getConfig() { 39179335Syongari return overrideGraalDebugConfig(System.out, "MethodMetricsTest$TestApplication.*", "CountingMulPhase"); 40179335Syongari } 41179335Syongari 42179335Syongari @Override 43179335Syongari void assertValues() throws Throwable { 44179335Syongari assertValues("Muls", new long[]{0, 1, 0, 0, 0, 0, 0, 0, 0, 0}); 45179335Syongari } 46179335Syongari 47179335Syongari @Override 48179335Syongari @Test 49179335Syongari public void test() throws Throwable { 50179335Syongari super.test(); 51179335Syongari } 52179335Syongari} 53179335Syongari