Skip to content

Commit 54fddc0

Browse files
Update README.md (#272)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent ca01287 commit 54fddc0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ The library focuses exclusively on cpu profiling. For heap profiling please cons
2121
ZIO Profiling requires you to add both the main library and optionally the compiler plugin to your build.sbt:
2222

2323
```scala
24-
libraryDependencies += "dev.zio" %% "zio-profiling" % "0.2.1"
25-
libraryDependencies += compilerPlugin("dev.zio" %% "zio-profiling-tagging-plugin" % "0.2.1")
24+
libraryDependencies += "dev.zio" %% "zio-profiling" % "0.3.0"
25+
libraryDependencies += compilerPlugin("dev.zio" %% "zio-profiling-tagging-plugin" % "0.3.0")
2626
```
2727

2828
## Profiling an application and displaying a flamegraph
@@ -131,15 +131,15 @@ val testEffect = CostCenter.withChildCostCenter("foo.Foo.testEffect(Foo.scala:12
131131
To enable the compiler plugin, add the following to the sbt module __containing the code you want to profile__.
132132

133133
```scala
134-
compilerPlugin("dev.zio" %% "zio-profiling-tagging-plugin" % "0.2.1")
134+
compilerPlugin("dev.zio" %% "zio-profiling-tagging-plugin" % "0.3.0")
135135

136136
```
137137

138138
## Jmh Support
139139

140140
ZIO Profiling offers an integration with the Java Microbenchmark Harness (JMH). In order to profile a jmh benchmark, first ensure that the sources are properly tagged using the tagging plugin. Next, add a dependency to the jmh module to your benchmarking module:
141141
```scala
142-
libraryDependencies += "dev.zio" %% "zio-profiling-jmh" % "0.2.1"
142+
libraryDependencies += "dev.zio" %% "zio-profiling-jmh" % "0.3.0"
143143
```
144144

145145
In your actual benchmarks, ensure that you are running ZIO effects using the methods in `zio.profiling.jmh.BenchmarkUtils`. A possible benchmark might look like this

0 commit comments

Comments
 (0)