// Path: api/src/main/java/io/perfmark/Impl.java
// public class Impl {
//   static final String NO_TAG_NAME = "";
//   static final long NO_TAG_ID = Long.MIN_VALUE;
//   /**
//    * This value is current {@link Long#MIN_VALUE}, but it could also be {@code 0}. The invariant
//    * {@code NO_LINK_ID == -NO_LINK_ID} must be maintained to work when PerfMark is disabled.
//    */
//   private static final long NO_LINK_ID = Long.MIN_VALUE;
// 
//   static final Tag NO_TAG = new Tag(Impl.NO_TAG_NAME, Impl.NO_TAG_ID);
//   static final Link NO_LINK = new Link(Impl.NO_LINK_ID);
// 
//   /** The Noop implementation */
//   protected Impl(Tag key) {
//     if (key != NO_TAG) {
//       throw new AssertionError("nope");
//     }
//   }
// 
//   protected void setEnabled(boolean value) {}
// 
//   protected <T> void startTask(T taskNameObject, StringFunction<? super T> taskNameFunc) {}
// 
//   protected void startTask(String taskName, Tag tag) {}
// 
//   protected void startTask(String taskName) {}
// 
//   protected void startTask(String taskName, String subTaskName) {}
// 
//   protected void event(String eventName, Tag tag) {}
// 
//   protected void event(String eventName) {}
// 
//   protected void event(String eventName, String subEventName) {}
// 
//   protected void stopTask() {}
// 
//   protected void stopTask(String taskName, Tag tag) {}
// 
//   protected void stopTask(String taskName) {}
// 
//   protected void stopTask(String taskName, String subTaskName) {}
// 
//   protected Link linkOut() {
//     return NO_LINK;
//   }
// 
//   protected void linkIn(Link link) {}
// 
//   protected void attachTag(Tag tag) {}
// 
//   protected void attachTag(String tagName, String tagValue) {}
// 
//   protected void attachTag(String tagName, long tagValue) {}
// 
//   protected void attachTag(String tagName, long tagValue0, long tagValue1) {}
// 
//   protected <T> void attachTag(
//       String tagName, T tagObject, StringFunction<? super T> stringFunction) {}
// 
//   protected Tag createTag(@Nullable String tagName, long tagId) {
//     return NO_TAG;
//   }
// 
//   @Nullable
//   protected static String unpackTagName(Tag tag) {
//     return tag.tagName;
//   }
// 
//   protected static long unpackTagId(Tag tag) {
//     return tag.tagId;
//   }
// 
//   protected static long unpackLinkId(Link link) {
//     return link.linkId;
//   }
// 
//   protected static Tag packTag(@Nullable String tagName, long tagId) {
//     return new Tag(tagName, tagId);
//   }
// 
//   protected static Link packLink(long linkId) {
//     return new Link(linkId);
//   }
// }
// 
// Path: api/src/main/java/io/perfmark/Link.java
// public final class Link {
// 
//   final long linkId;
// 
//   Link(long linkId) {
//     this.linkId = linkId;
//   }
// 
//   /** DO NOT CALL, no longer implemented. Use {@link PerfMark#linkIn} instead. */
//   @Deprecated
//   @DoNotCall
//   public void link() {}
// }
// 
// Path: api/src/main/java/io/perfmark/StringFunction.java
// public interface StringFunction<T> {
// 
//   /**
//    * Takes the given argument and produces a String.
//    *
//    * @since 0.22.0
//    * @param t the subject to Stringify
//    * @return the String
//    */
//   String apply(T t);
// }
// 
// Path: api/src/main/java/io/perfmark/Tag.java
// public final class Tag {
//   @Nullable final String tagName;
//   final long tagId;
// 
//   Tag(@Nullable String tagName, long tagId) {
//     // tagName should be non-null, but checking is expensive
//     this.tagName = tagName;
//     this.tagId = tagId;
//   }
// }


import io.perfmark.Impl;
import io.perfmark.Link;
import io.perfmark.StringFunction;
import io.perfmark.Tag;
import java.util.concurrent.atomic.AtomicLong;
import java.util.logging.Level;
import java.util.logging.LogRecord;
import java.util.logging.Logger;
import javax.annotation.Nullable;
/*
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package io.perfmark.impl;


final class SecretPerfMarkImpl {

  public static final class PerfMarkImpl extends Impl {
    private static final Tag NO_TAG = packTag(Mark.NO_TAG_NAME, Mark.NO_TAG_ID);
// Path: api/src/main/java/io/perfmark/Impl.java
// public class Impl {
//   static final String NO_TAG_NAME = "";
//   static final long NO_TAG_ID = Long.MIN_VALUE;
//   /**
//    * This value is current {@link Long#MIN_VALUE}, but it could also be {@code 0}. The invariant
//    * {@code NO_LINK_ID == -NO_LINK_ID} must be maintained to work when PerfMark is disabled.
//    */
//   private static final long NO_LINK_ID = Long.MIN_VALUE;
// 
//   static final Tag NO_TAG = new Tag(Impl.NO_TAG_NAME, Impl.NO_TAG_ID);
//   static final Link NO_LINK = new Link(Impl.NO_LINK_ID);
// 
//   /** The Noop implementation */
//   protected Impl(Tag key) {
//     if (key != NO_TAG) {
//       throw new AssertionError("nope");
//     }
//   }
// 
//   protected void setEnabled(boolean value) {}
// 
//   protected <T> void startTask(T taskNameObject, StringFunction<? super T> taskNameFunc) {}
// 
//   protected void startTask(String taskName, Tag tag) {}
// 
//   protected void startTask(String taskName) {}
// 
//   protected void startTask(String taskName, String subTaskName) {}
// 
//   protected void event(String eventName, Tag tag) {}
// 
//   protected void event(String eventName) {}
// 
//   protected void event(String eventName, String subEventName) {}
// 
//   protected void stopTask() {}
// 
//   protected void stopTask(String taskName, Tag tag) {}
// 
//   protected void stopTask(String taskName) {}
// 
//   protected void stopTask(String taskName, String subTaskName) {}
// 
//   protected Link linkOut() {
//     return NO_LINK;
//   }
// 
//   protected void linkIn(Link link) {}
// 
//   protected void attachTag(Tag tag) {}
// 
//   protected void attachTag(String tagName, String tagValue) {}
// 
//   protected void attachTag(String tagName, long tagValue) {}
// 
//   protected void attachTag(String tagName, long tagValue0, long tagValue1) {}
// 
//   protected <T> void attachTag(
//       String tagName, T tagObject, StringFunction<? super T> stringFunction) {}
// 
//   protected Tag createTag(@Nullable String tagName, long tagId) {
//     return NO_TAG;
//   }
// 
//   @Nullable
//   protected static String unpackTagName(Tag tag) {
//     return tag.tagName;
//   }
// 
//   protected static long unpackTagId(Tag tag) {
//     return tag.tagId;
//   }
// 
//   protected static long unpackLinkId(Link link) {
//     return link.linkId;
//   }
// 
//   protected static Tag packTag(@Nullable String tagName, long tagId) {
//     return new Tag(tagName, tagId);
//   }
// 
//   protected static Link packLink(long linkId) {
//     return new Link(linkId);
//   }
// }
// 
// Path: api/src/main/java/io/perfmark/Link.java
// public final class Link {
// 
//   final long linkId;
// 
//   Link(long linkId) {
//     this.linkId = linkId;
//   }
// 
//   /** DO NOT CALL, no longer implemented. Use {@link PerfMark#linkIn} instead. */
//   @Deprecated
//   @DoNotCall
//   public void link() {}
// }
// 
// Path: api/src/main/java/io/perfmark/StringFunction.java
// public interface StringFunction<T> {
// 
//   /**
//    * Takes the given argument and produces a String.
//    *
//    * @since 0.22.0
//    * @param t the subject to Stringify
//    * @return the String
//    */
//   String apply(T t);
// }
// 
// Path: api/src/main/java/io/perfmark/Tag.java
// public final class Tag {
//   @Nullable final String tagName;
//   final long tagId;
// 
//   Tag(@Nullable String tagName, long tagId) {
//     // tagName should be non-null, but checking is expensive
//     this.tagName = tagName;
//     this.tagId = tagId;
//   }
// }


// Path: impl/src/main/java/io/perfmark/impl/SecretPerfMarkImpl.java
import io.perfmark.Impl;
import io.perfmark.Link;
import io.perfmark.StringFunction;
import io.perfmark.Tag;
import java.util.concurrent.atomic.AtomicLong;
import java.util.logging.Level;
import java.util.logging.LogRecord;
import java.util.logging.Logger;
import javax.annotation.Nullable;

/*
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package io.perfmark.impl;


final class SecretPerfMarkImpl {

  public static final class PerfMarkImpl extends Impl {
    private static final Tag NO_TAG = packTag(Mark.NO_TAG_NAME, Mark.NO_TAG_ID);
    private static final Link NO_LINK = packLink(Mark.NO_LINK_ID);