-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #73. Initial parallelism reporting/analysis.
- Loading branch information
Mike Millson
committed
Apr 19, 2017
1 parent
70b9539
commit ad20999
Showing
40 changed files
with
619 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/main/java/org/eclipselabs/garbagecat/domain/ParallelCollection.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/********************************************************************************************************************** | ||
* garbagecat * | ||
* * | ||
* Copyright (c) 2008-2016 Red Hat, Inc. * | ||
* * | ||
* All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse * | ||
* Public License v1.0 which accompanies this distribution, and is available at * | ||
* http://www.eclipse.org/legal/epl-v10.html. * | ||
* * | ||
* Contributors: * | ||
* Red Hat, Inc. - initial API and implementation * | ||
*********************************************************************************************************************/ | ||
package org.eclipselabs.garbagecat.domain; | ||
|
||
/** | ||
* Multi-threaded collection. | ||
* | ||
* @author <a href="mailto:mmillson@redhat.com">Mike Millson</a> | ||
* | ||
*/ | ||
public interface ParallelCollection { | ||
|
||
} |
50 changes: 50 additions & 0 deletions
50
src/main/java/org/eclipselabs/garbagecat/domain/TimesData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/********************************************************************************************************************** | ||
* garbagecat * | ||
* * | ||
* Copyright (c) 2008-2016 Red Hat, Inc. * | ||
* * | ||
* All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse * | ||
* Public License v1.0 which accompanies this distribution, and is available at * | ||
* http://www.eclipse.org/legal/epl-v10.html. * | ||
* * | ||
* Contributors: * | ||
* Red Hat, Inc. - initial API and implementation * | ||
*********************************************************************************************************************/ | ||
package org.eclipselabs.garbagecat.domain; | ||
|
||
/** | ||
* Times data block output at the end of some garbage collection logging events. | ||
* | ||
* <h3>Example Logging</h3> | ||
* | ||
* <p> | ||
* [Times: user=0.31 sys=0.00, real=0.04 secs] | ||
* </p> | ||
* | ||
* @author <a href="mailto:mmillson@redhat.com">Mike Millson</a> | ||
* | ||
*/ | ||
public interface TimesData { | ||
|
||
/** | ||
* Regular expression for times data block. | ||
*/ | ||
String REGEX = "( \\[Times: user=(\\d{1,4}[\\.\\,]\\d{2}) sys=\\d{1,4}[\\.\\,]\\d{2}, " | ||
+ "real=(\\d{1,4}[\\.\\,]\\d{2}) secs\\])"; | ||
|
||
/** | ||
* @return The time of all threads added together in centoseconds. | ||
*/ | ||
int getTimeUser(); | ||
|
||
/** | ||
* @return The wall (clock) time in centoseconds. | ||
*/ | ||
int getTimeReal(); | ||
|
||
/** | ||
* @return The ratio of user:real time rounded to the nearest whole number. With good parallelism, the user time | ||
* will be (# threads) x (real time). | ||
*/ | ||
byte getParallelism(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.