Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Log Analyze Feature to TlmExtractor/CmdExtractor #336

Closed
ryanatball opened this issue Sep 26, 2016 · 2 comments
Closed

Add Log Analyze Feature to TlmExtractor/CmdExtractor #336

ryanatball opened this issue Sep 26, 2016 · 2 comments
Assignees
Labels
Milestone

Comments

@ryanatball
Copy link
Member

@ryanatball ryanatball commented Sep 26, 2016

I frequently end up writing little scripts to read through log files and see what packets are actually within them. Add a new feature to TlmExtractor and CmdExtractor that will do exactly that and present the user with a dialog that shows what packets are present in a log file and how many of each packet exists.

@ryanatball ryanatball added the feature label Sep 26, 2016
@ryanatball
Copy link
Member Author

@ryanatball ryanatball commented Sep 26, 2016

Here is a little command line script that will do this, GUI will be similar:

require 'cosmos'
require 'cosmos/packet_logs/packet_log_reader'

counts = {}

plr = Cosmos::PacketLogReader.new
plr.each(ARGV[0]) do |packet|
  counts["#{packet.target_name}_#{packet.packet_name}"] ||= 0
  counts["#{packet.target_name}_#{packet.packet_name}"] += 1
end

counts.each do |name, count|
  puts "#{name}: #{count}"
end
@donaldatball donaldatball self-assigned this May 5, 2017
donaldatball added a commit that referenced this issue May 9, 2017
donaldatball added a commit that referenced this issue May 9, 2017
donaldatball added a commit that referenced this issue May 9, 2017
… menu action instead of a front-panel button
donaldatball added a commit that referenced this issue May 9, 2017
…ScrollTextDialog to make it auto-size itself
@donaldatball
Copy link
Collaborator

@donaldatball donaldatball commented May 9, 2017

Closed with d61332c

@ryanatball ryanatball modified the milestone: v3.9.2 May 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.