Add timing points
Add some timing points to manifest updates
This commit is contained in:
parent
8e92a2c563
commit
13c5cc8899
2 changed files with 8 additions and 0 deletions
|
@ -159,6 +159,10 @@
|
||||||
{info, "File created"}},
|
{info, "File created"}},
|
||||||
{"PC016",
|
{"PC016",
|
||||||
{info, "Slow fetch from SFT ~w of ~w microseconds with result ~w"}},
|
{info, "Slow fetch from SFT ~w of ~w microseconds with result ~w"}},
|
||||||
|
{"PC017",
|
||||||
|
{info, "Notified clerk of manifest change"}},
|
||||||
|
{"PC018",
|
||||||
|
{info, "Saved manifest file"}},
|
||||||
|
|
||||||
{"I0001",
|
{"I0001",
|
||||||
{info, "Unexpected failure to fetch value for Key=~w SQN=~w "
|
{info, "Unexpected failure to fetch value for Key=~w SQN=~w "
|
||||||
|
|
|
@ -109,10 +109,14 @@ handle_work({SrcLevel, Manifest}, State) ->
|
||||||
Manifest,
|
Manifest,
|
||||||
State#state.root_path),
|
State#state.root_path),
|
||||||
leveled_log:log("PC007", []),
|
leveled_log:log("PC007", []),
|
||||||
|
SWMC = os:timestamp(),
|
||||||
ok = leveled_penciller:pcl_manifestchange(State#state.owner,
|
ok = leveled_penciller:pcl_manifestchange(State#state.owner,
|
||||||
UpdManifest),
|
UpdManifest),
|
||||||
|
leveled_log:log_timer("PC017", [], SWMC),
|
||||||
|
SWSM = os:timestamp(),
|
||||||
ok = leveled_manifest:save_manifest(UpdManifest,
|
ok = leveled_manifest:save_manifest(UpdManifest,
|
||||||
State#state.root_path),
|
State#state.root_path),
|
||||||
|
leveled_log:log_timer("PC018", [], SWSM),
|
||||||
ok = notify_deletions(EntriesToDelete, State#state.owner).
|
ok = notify_deletions(EntriesToDelete, State#state.owner).
|
||||||
|
|
||||||
merge(SrcLevel, Manifest, RootPath) ->
|
merge(SrcLevel, Manifest, RootPath) ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue