1e236301e5fc778bffe1748ed80d7936e6c807012Paul Duffin/* 2e236301e5fc778bffe1748ed80d7936e6c807012Paul Duffin * Copyright (C) 2011 Google Inc. 3e236301e5fc778bffe1748ed80d7936e6c807012Paul Duffin * 4e236301e5fc778bffe1748ed80d7936e6c807012Paul Duffin * Licensed under the Apache License, Version 2.0 (the "License"); 5e236301e5fc778bffe1748ed80d7936e6c807012Paul Duffin * you may not use this file except in compliance with the License. 6e236301e5fc778bffe1748ed80d7936e6c807012Paul Duffin * You may obtain a copy of the License at 7e236301e5fc778bffe1748ed80d7936e6c807012Paul Duffin * 8e236301e5fc778bffe1748ed80d7936e6c807012Paul Duffin * http://www.apache.org/licenses/LICENSE-2.0 9e236301e5fc778bffe1748ed80d7936e6c807012Paul Duffin * 10e236301e5fc778bffe1748ed80d7936e6c807012Paul Duffin * Unless required by applicable law or agreed to in writing, software 11e236301e5fc778bffe1748ed80d7936e6c807012Paul Duffin * distributed under the License is distributed on an "AS IS" BASIS, 12e236301e5fc778bffe1748ed80d7936e6c807012Paul Duffin * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13e236301e5fc778bffe1748ed80d7936e6c807012Paul Duffin * See the License for the specific language governing permissions and 14e236301e5fc778bffe1748ed80d7936e6c807012Paul Duffin * limitations under the License. 15e236301e5fc778bffe1748ed80d7936e6c807012Paul Duffin */ 16e236301e5fc778bffe1748ed80d7936e6c807012Paul Duffin 17e236301e5fc778bffe1748ed80d7936e6c807012Paul Duffinpackage com.google.caliper.model; 18e236301e5fc778bffe1748ed80d7936e6c807012Paul Duffin 19e236301e5fc778bffe1748ed80d7936e6c807012Paul Duffinimport java.lang.annotation.ElementType; 20e236301e5fc778bffe1748ed80d7936e6c807012Paul Duffinimport java.lang.annotation.Retention; 21e236301e5fc778bffe1748ed80d7936e6c807012Paul Duffinimport java.lang.annotation.RetentionPolicy; 22e236301e5fc778bffe1748ed80d7936e6c807012Paul Duffinimport java.lang.annotation.Target; 23e236301e5fc778bffe1748ed80d7936e6c807012Paul Duffin 24e236301e5fc778bffe1748ed80d7936e6c807012Paul Duffin/** 25e236301e5fc778bffe1748ed80d7936e6c807012Paul Duffin * Annotation that identifies a given method as an "allocation measurement" method. The method 26e236301e5fc778bffe1748ed80d7936e6c807012Paul Duffin * should take a single int parameter; its return value may be any type. Methods with this 27e236301e5fc778bffe1748ed80d7936e6c807012Paul Duffin * annotation may be used with the {@link com.google.caliper.runner.AllocationInstrument}. 28e236301e5fc778bffe1748ed80d7936e6c807012Paul Duffin */ 29e236301e5fc778bffe1748ed80d7936e6c807012Paul Duffin@Retention(RetentionPolicy.RUNTIME) 30e236301e5fc778bffe1748ed80d7936e6c807012Paul Duffin@Target(ElementType.METHOD) 31e236301e5fc778bffe1748ed80d7936e6c807012Paul Duffinpublic @interface AllocationMeasurement {} 32