wait interval - time between samples

Đang mở
#90 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
java
Lĩnh vực
desktop, performance

Hướng nghiên cứu

Start with App.java and the jdm.properties loading and saving mentioned in the issue, then trace how Swing worker threads write benchmark samples. The definition of done calls for an Advanced Options dialog, a persisted interval, and per-thread timing so each next write starts only after the interval has elapsed. Verify the setting survives restart and that sample start times are regulated as described.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement ui/ux

add an advanced feature for the user to set a wait interval for their benchmark where a sample write would wait for that interval before writing the next sample. Basically we would take that value and just thread sleep before waiting for the next sample to be written.

This interval could also be referred to as "time between samples"

perhaps a numeric value and a unit can be selected or just a single value where the user would specify mili seconds or seconds.

Image

It would be best to put this on a separate dialog called Advanced Options that can be made visible from the options menu. The wait interval should be saved when set to the jdm.properties file which is loaded at startup.

it is recommended to not just wait for the wait interval and instead after the first sample is written see if the wait interval has passed and if not calculate the time difference remaining before the wait interval, wait for that time and the proceed to write the next sample. this way the start of each sample write will be potentially spaced apart by the wait interval or zero if the wait interval is shorter than the time it takes to write a sample.

Image

note that even though each thread will have the same wait time each thread will need to track it's own last sample write time since threads operate independently of each other.

Definition of Done:

  1. make sure the frame when brought up is centered over the parent frame
  2. user can select and tune the "time between samples" parameter
  3. jdm.properties updated on user select and app loads this value on next app startup.
  4. App.java or some global location has this settings stored and loaded so a swing worker can wait before doing each write
  5. swing worker threads will timestamp each sample write and wait until the duration has fully elapsed before the next sample write. the time between samples writes is regulated by this wait period, not the time between the end of the last sample write and the time of the next sample write.
Ngôn ngữ chính
Java
Star
6
Fork
6
Merge trung bình
10 giờ 11 phút
Pull request đã merge (30 ngày)
12

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của JDiskMark/jdm-java

Tất cả issue của JDiskMark/jdm-java

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.