Skip to content
This repository was archived by the owner on Mar 14, 2019. It is now read-only.

Commit

Permalink
Tag v0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jushi committed Jun 14, 2012
1 parent 6340bb8 commit 701cfb6
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[中文使用指南](https://github.com/zhongl/HouseMD/wiki/UseGuideCN-0-2-0)
[中文使用指南](https://github.com/zhongl/HouseMD/wiki/UserGuideCN)

HouseMD is a interactive command-line tool for dianosing Java process in runtime.
It's inspiration came from [BTrace](http://kenai.com/projects/btrace), but more easier to use.
It's inspiration came from [BTrace](http://kenai.com/projects/btrace), but more easier to use and more safer.

# Features

Expand All @@ -14,6 +14,7 @@ It's inspiration came from [BTrace](http://kenai.com/projects/btrace), but more
- class loader of method declaring class
- total invoked times
- avg elapse millis
- self instance
- Output invocation detail
- timestamp
- elapse millis
Expand Down Expand Up @@ -43,7 +44,7 @@ It's inspiration came from [BTrace](http://kenai.com/projects/btrace), but more

## Normal install

- Click [here](https://github.com/downloads/zhongl/HouseMD/housemd-assembly-0.2.0.jar) download executable jar
- Click [here](https://github.com/zhongl/HouseMD/downloads) download lastest version executable jar
- Run it as:

> java -Xbootclasspath/a:$JAVA_HOME/lib/tools.jar -jar housemd-assembly-x.x.x.jar
Expand Down
2 changes: 1 addition & 1 deletion bin/install
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#! /bin/bash

curl -Lk https://github.com/downloads/zhongl/HouseMD/housemd-assembly-0.2.0.jar > housemd.jar
curl -Lk https://github.com/downloads/zhongl/HouseMD/housemd-assembly-0.2.1.jar > housemd.jar
curl -Lk https://raw.github.com/zhongl/HouseMD/master/bin/housemd > housemd
chmod u+x housemd
5 changes: 2 additions & 3 deletions project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ object Build extends sbt.Build {
settings = Defaults.defaultSettings ++ classpathSettings ++ assemblySettings ++ Seq(
name := "housemd",
organization := "com.github.zhongl",
version := "0.2.0",
version := "0.2.1",
scalaVersion := "2.9.2",
scalacOptions ++= Seq("-unchecked", "-deprecation"),
resolvers += "Local Maven Repository" at "file://"+Path.userHome.absolutePath+"/.m2/repository",
Expand Down Expand Up @@ -68,8 +68,7 @@ object Build extends sbt.Build {
lazy val classpathSettings =
if (sys.props("os.name").contains("Linux")) Seq(
unmanagedClasspath in Compile += Attributed.blank(toolsFile),
unmanagedClasspath in Test <<= unmanagedClasspath in Compile//,
//unmanagedClasspath in Runtime <<= unmanagedClasspath in Compile
unmanagedClasspath in Test <<= unmanagedClasspath in Compile
)
else Seq()
}
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.7.4")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.8.3")

resolvers += Resolver.url("sbt-plugin-releases",
new URL("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases/"))(Resolver.ivyStylePatterns)
3 changes: 2 additions & 1 deletion src/main/scala/com/github/zhongl/housemd/Context.scala
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ case class Context(
stopped: Option[Long],
resultOrException: Option[AnyRef]) {

def classEquals(c: Class[_]) = loader == c.getClassLoader && className == c.getName
def classEquals(c: Class[_]) =
if (thisObject == null) loader == c.getClassLoader && className == c.getName else thisObject.getClass == c

def methodEquals(m: Method) = methodName == m.getName &&
((arguments.isEmpty) || (arguments.size == m.getParameterTypes.size && parameterTypsMatches(m)))
Expand Down

0 comments on commit 701cfb6

Please sign in to comment.