| | |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014-2015 ForgeRock AS. |
| | | * Portions Copyright 2026 3A Systems, LLC. |
| | | */ |
| | | package org.opends.server.plugins.profiler; |
| | | |
| | |
| | | import java.util.Arrays; |
| | | import java.util.HashMap; |
| | | |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | |
| | | |
| | | /** |
| | | * This class defines a data structure for holding information about a stack |
| | | * frame captured by the Directory Server profiler. It will contain the class |
| | |
| | | public class ProfileStackFrame |
| | | implements Comparable |
| | | { |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * The mapping between the line numbers for this stack frame and the |
| | | * number of times that they were encountered. |
| | |
| | | @Override |
| | | public boolean equals(Object o) |
| | | { |
| | | if (o == null) |
| | | { |
| | | return false; |
| | | } |
| | | else if (this == o) |
| | | if (this == o) |
| | | { |
| | | return true; |
| | | } |
| | | |
| | | try |
| | | if (!(o instanceof ProfileStackFrame)) |
| | | { |
| | | ProfileStackFrame f = (ProfileStackFrame) o; |
| | | return className.equals(f.className) && methodName.equals(f.methodName); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | logger.traceException(e); |
| | | |
| | | return false; |
| | | } |
| | | |
| | | ProfileStackFrame f = (ProfileStackFrame) o; |
| | | return className.equals(f.className) && methodName.equals(f.methodName); |
| | | } |
| | | |
| | | |