public interface Storage
Profiling info is stored for later retrieval either by AJAX from the mini-profiler UI on the same page, or later inspection.
| Modifier and Type | Interface and Description |
|---|---|
static class |
Storage.ListResultsOrder
Which order to list results in.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<java.util.UUID> |
getUnviewedIds(java.lang.String user)
Returns a list of profiling session ids s that haven't been seen by the given user.
|
java.util.Collection<java.util.UUID> |
list(int maxResults,
java.util.Date start,
java.util.Date finish,
Storage.ListResultsOrder orderBy)
List profiling
|
ProfilerImpl |
load(java.util.UUID id)
Returns a previously saved profiling session.
|
void |
save(ProfilerImpl profiler)
Stores the given profiling information
|
void |
setUnviewed(java.lang.String user,
java.util.UUID id)
Sets a particular profiler session so it is considered "un-viewed" by the given user
|
void |
setViewed(java.lang.String user,
java.util.UUID id)
Sets a particular profiler session to "viewed" for the given user.
|
java.util.Collection<java.util.UUID> list(int maxResults,
java.util.Date start,
java.util.Date finish,
Storage.ListResultsOrder orderBy)
maxResults - the maximum number of ids to list.start - the date to start searchingfinish - the end dateorderBy - which order to list the uuidsvoid save(ProfilerImpl profiler)
profiler - the profiling information to storeProfilerImpl load(java.util.UUID id)
id - the id of the profiling session to fetchvoid setUnviewed(java.lang.String user,
java.util.UUID id)
user - the userid - the id of the sessionvoid setViewed(java.lang.String user,
java.util.UUID id)
user - the userid - the id of the sessionjava.util.Collection<java.util.UUID> getUnviewedIds(java.lang.String user)
user - the user