projects
/
bluesky.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Start to add request time profiling.
[bluesky.git]
/
bluesky
/
cloudlog.c
diff --git
a/bluesky/cloudlog.c
b/bluesky/cloudlog.c
index
0668da7
..
b6ee07f
100644
(file)
--- a/
bluesky/cloudlog.c
+++ b/
bluesky/cloudlog.c
@@
-353,6
+353,10
@@
void bluesky_cloudlog_fetch(BlueSkyCloudLog *log)
bluesky_string_unref(raw);
}
bluesky_string_unref(raw);
}
+ BlueSkyProfile *profile = bluesky_profile_get();
+ if (profile != NULL)
+ bluesky_profile_add_event(profile, g_strdup_printf("Fetch log entry"));
+
/* At this point all metadata should be available and we need only remap
* the object data. */
log->data = bluesky_log_map_object(log, TRUE);
/* At this point all metadata should be available and we need only remap
* the object data. */
log->data = bluesky_log_map_object(log, TRUE);
@@
-361,6
+365,8
@@
void bluesky_cloudlog_fetch(BlueSkyCloudLog *log)
g_error("Unable to fetch cloudlog entry!");
}
g_error("Unable to fetch cloudlog entry!");
}
+ if (profile != NULL)
+ bluesky_profile_add_event(profile, g_strdup_printf("Fetch complete"));
g_cond_broadcast(log->cond);
}
g_cond_broadcast(log->cond);
}