Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
d7d7b842
Commit
d7d7b842
authored
13 years ago
by
brinn
Browse files
Options
Downloads
Patches
Plain Diff
add: log messages to get some performance numbers on why getting image metadata is so slow
SVN: 23432
parent
5b26ff02
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
screening/source/java/ch/systemsx/cisd/openbis/dss/screening/server/DssServiceRpcScreening.java
+29
-0
29 additions, 0 deletions
.../openbis/dss/screening/server/DssServiceRpcScreening.java
with
29 additions
and
0 deletions
screening/source/java/ch/systemsx/cisd/openbis/dss/screening/server/DssServiceRpcScreening.java
+
29
−
0
View file @
d7d7b842
...
...
@@ -237,11 +237,40 @@ public class DssServiceRpcScreening extends AbstractDssServiceRpc<IDssServiceRpc
private
ImageDatasetMetadata
extractImageMetadata
(
IImageDatasetIdentifier
dataset
,
File
datasetRoot
)
{
long
start
=
System
.
currentTimeMillis
();
final
IImagingDatasetLoader
imageAccessor
=
createImageLoader
(
dataset
.
getDatasetCode
(),
datasetRoot
);
if
(
operationLog
.
isInfoEnabled
())
{
operationLog
.
info
(
String
.
format
(
"extractImageMetadata(): createImageLoader() took %.2f s"
,
(
System
.
currentTimeMillis
()
-
start
)
/
1000.0
));
}
start
=
System
.
currentTimeMillis
();
final
Size
imageSize
=
getOriginalImageSize
(
dataset
,
imageAccessor
);
if
(
operationLog
.
isInfoEnabled
())
{
operationLog
.
info
(
String
.
format
(
"extractImageMetadata(): getOriginalImageSize() took %.2f s"
,
(
System
.
currentTimeMillis
()
-
start
)
/
1000.0
));
}
start
=
System
.
currentTimeMillis
();
final
Size
thumbnailSize
=
getThumbnailImageSize
(
dataset
,
imageAccessor
);
if
(
operationLog
.
isInfoEnabled
())
{
operationLog
.
info
(
String
.
format
(
"extractImageMetadata(): getThumbnailImageSize() took %.2f s"
,
(
System
.
currentTimeMillis
()
-
start
)
/
1000.0
));
}
start
=
System
.
currentTimeMillis
();
final
ImageDatasetParameters
params
=
imageAccessor
.
getImageParameters
();
if
(
operationLog
.
isInfoEnabled
())
{
operationLog
.
info
(
String
.
format
(
"extractImageMetadata(): getImageParameters() took %.2f s"
,
(
System
.
currentTimeMillis
()
-
start
)
/
1000.0
));
}
return
new
ImageDatasetMetadata
(
dataset
,
toPublicChannels
(
params
.
getInternalChannels
()),
params
.
getTileRowsNum
(),
params
.
getTileColsNum
(),
imageSize
.
getWidth
(),
imageSize
.
getHeight
(),
thumbnailSize
.
getWidth
(),
thumbnailSize
.
getHeight
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment