cocoapods-time-analyze 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e78fd0973542aa064349d9b4a4bd0b97ce8e32e
|
4
|
+
data.tar.gz: 9211bee04ad0fb64063aaba9b86106d069c9f107
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb7e5b7f3950b44c79ac8638517e9bd39eb5b2ca806d65d6f99161dcbabb48963472798262a36e4732385ad1d94e966973f6f3f18d4c9c93212f04e6483cc86c
|
7
|
+
data.tar.gz: d04d7777826ac947287daf77e2f44596680a06ab2af51f567be56fd35adc6e2f825c2a6742862f48747f522ffb0ce8ca9762dc49918f071d8f0145f86c3c498a
|
data/.gem_release.yml
CHANGED
@@ -12,7 +12,7 @@ module Pod
|
|
12
12
|
TimeAnalyzeConfig::PodInstall.target_steps.each { |step| redefine_step_method(step.to_sym) }
|
13
13
|
install_start_time = Time.now
|
14
14
|
origin_install!
|
15
|
-
total_time = Time.now - install_start_time
|
15
|
+
total_time = (Time.now - install_start_time).round(2)
|
16
16
|
|
17
17
|
TimeAnalyzeConfig::PodInstall.after_all(total_time, @time_log, self)
|
18
18
|
write_summary_file(total_time) if TimeAnalyzeConfig::PodInstall.enable_local_summary
|
@@ -34,7 +34,7 @@ module Pod
|
|
34
34
|
block = proc do |*arguments|
|
35
35
|
start_time = Time.now
|
36
36
|
send("origin_#{method_sym}".to_sym, *arguments)
|
37
|
-
total_time = Time.now - start_time
|
37
|
+
total_time = (Time.now - start_time).round(2)
|
38
38
|
@time_log[method_sym] = total_time
|
39
39
|
end
|
40
40
|
|
@@ -20,8 +20,8 @@ log_content = JSON.parse(File.read(json_log_file))
|
|
20
20
|
`rm -rf #{json_log_file}`
|
21
21
|
|
22
22
|
end_time_with_duration = log_content['logs'].each_with_object({}) do |log_content, hash|
|
23
|
-
start_timestamp = log_content.last['timeStartedRecording'].
|
24
|
-
end_timestamp = log_content.last['timeStoppedRecording'].
|
23
|
+
start_timestamp = log_content.last['timeStartedRecording'].round(2)
|
24
|
+
end_timestamp = log_content.last['timeStoppedRecording'].round(2)
|
25
25
|
duration = end_timestamp - start_timestamp
|
26
26
|
hash[end_timestamp] = duration
|
27
27
|
end
|