https://github.com/openweb-nl/hst-diagnostics-extension
HST Page Diagnostics extension
https://github.com/openweb-nl/hst-diagnostics-extension
Last synced: 11 months ago
JSON representation
HST Page Diagnostics extension
- Host: GitHub
- URL: https://github.com/openweb-nl/hst-diagnostics-extension
- Owner: openweb-nl
- License: apache-2.0
- Created: 2018-10-13T16:42:30.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-19T13:18:49.000Z (almost 7 years ago)
- Last Synced: 2025-01-05T19:24:48.066Z (about 1 year ago)
- Language: Java
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hippo Diagnostics Extension
## Introduction
This is a plugin for Hippo ([Hippo CMS](https://www.onehippo.org)) Site Toolkit that enable users to profile their code via annotations.
## USAGE
**Step 1:** Add the following dependency to your project /site/pom.xml file (Or a dependency of your project's site)
```xml
nl.openweb.hippo
hst-diagnostics-extension
1.0.0
```
**Step 2:** Add the following profile to your project /site/pom.xml file
```xml
profile
org.aspectj
aspectjrt
${aspectjweaver.version}
org.codehaus.mojo
aspectj-maven-plugin
1.10
nl.openweb.hippo
hst-diagnostics-extension
1.8
1.8
1.8
true
true
ignore
UTF-8
compile
```
**Step 3:** Add @Timed annotations to some methods in your project.
```java
@Timed
public List getRelatedNews() {
// ...
}
```
**Step 4:** Build your project via profile "profile"
```bash
mvn clean install -Pprofile
```