{"id":1077,"url":"https://github.com/zixun/GodEye","last_synced_at":"2025-07-30T20:32:46.326Z","repository":{"id":43763103,"uuid":"83022668","full_name":"zixun/GodEye","owner":"zixun","description":"Automaticly display Log,Crash,Network,ANR,Leak,CPU,RAM,FPS,NetFlow,Folder and etc with one line of code based on Swift. Just like God opened his eyes","archived":false,"fork":false,"pushed_at":"2024-09-22T16:14:18.000Z","size":23638,"stargazers_count":3849,"open_issues_count":8,"forks_count":351,"subscribers_count":82,"default_branch":"master","last_synced_at":"2024-11-14T15:49:46.703Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zixun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-24T09:04:53.000Z","updated_at":"2024-11-14T12:14:53.000Z","dependencies_parsed_at":"2022-11-29T13:20:15.491Z","dependency_job_id":null,"html_url":"https://github.com/zixun/GodEye","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zixun%2FGodEye","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zixun%2FGodEye/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zixun%2FGodEye/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zixun%2FGodEye/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zixun","download_url":"https://codeload.github.com/zixun/GodEye/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228187535,"owners_count":17882322,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-01-05T20:15:38.422Z","updated_at":"2024-12-04T20:31:00.717Z","avatar_url":"https://github.com/zixun.png","language":"Swift","funding_links":[],"categories":["Debugging","HarmonyOS","调试","Swift"],"sub_categories":["Getting Started","Windows Manager","Other free courses","Linter"],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./design/image/logo.png\" width=\"1000\" height=\"250\"/\u003e\n\u003c/p\u003e\n\n# GodEye\n\n[![Version](https://img.shields.io/cocoapods/v/Log4G.svg?style=flat)](http://cocoapods.org/pods/GodEye)\n[![License](https://img.shields.io/cocoapods/l/Log4G.svg?style=flat)](http://cocoapods.org/pods/GodEye)\n[![Platform](https://img.shields.io/cocoapods/p/Log4G.svg?style=flat)](http://cocoapods.org/pods/GodEye)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-Compatible-brightgreen.svg?style=flat)](https://github.com/Carthage/Carthage)\n\nAutomaticly display Log,Crash,Network,ANR,Leak,CPU,RAM,FPS,NetFlow,Folder and etc with one line of code based on Swift. Just like God opened his eyes.\n\n**[中文文档](./README_CN.md)**\n\nIt's so huge that I split it into several independent components:\n\n* [Log4G] — Simple, lightweight logging framework written in Swift.\n* [AssistiveButton] — Simple Assistive Button.\n* [AppBaseKit] — A handy kit of Swift extensions and wrapped class to boost your productivity.\n* [AppSwizzle] — lightweight and flexible method swizzling wrapped by swift.\n* [LeakEye] — LeakEye is a memory leak monitor.\n* [NetworkEye] — NetworkEye is a network monitor,automatic catch the request and response infomation of all kinds of request send.\n* [ANREye] — ANREye is an ANR (Application Not Responding) monitor,automatic catch the ANR and return stacktrace of all threads.\n* [ASLEye] — ASLEye is an ASL(Apple System Log) monitor, automatic catch the log from NSLog by asl module.\n* [CrashEye] — CrashEye is an ios crash monitor，automatic catch exception crash \u0026 signal crash and return the stacktrace.\n* [SystemEye] — SystemEye is a system monitor,automatic catch the infomation of cpu,memory....etc.\n\n## Features\n\n- [x] monitor for the log and point out log type.\n- [x] monitor for the crash, include Uncatched Exception and Signal.\n- [x] monitor for the network, all information of request and response.\n- [x] monitor for the ANR, tell you the stacktrace of all threads.\n- [x] monitor for the memory leak, tell you the leak object's class name.\n- [x] a terminal for you to customized your commands and things what to do.\n- [x] monitor for the cpu usage of system and application.\n- [x] monitor for the ram usage of system and application.\n- [x] monitor for the FPS.\n- [x] monitor for the netflow of system and application. \n- [x] a file browser for look through the sandbox, .app and root directory.\n- [x] custom and runtime setting\n\n## Characteristics\n\n- [x] richly: comprehensive feature\n- [x] conveniently: one line code access\n- [x] automaticly: no code intrusion\n- [x] safety: no compile code in release\n\n\n## Preview\n\n  \u003cimg src=\"./design/image/preview_meitu_1.jpg\" width=\"100%\"/\u003e\n\n\n## Book and Principle\n\n**I has wrote a book named [《iOS监控编程》](https://xiaozhuanlan.com/godeye),each chapter records the course function of the implementation details and the way to explore.sorry for english friends,this book wrote by chineses.**\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./design/image/cover.jpg\" width=45%/\u003e\n\u003c/p\u003e\n\n## Installation\n\n### CocoaPods\nGodEye is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"GodEye\"\n```\n\n#### Not build in Release\n\nFirst, add configurations in Podfile.\n\n```ruby\npod 'GodEye', '~\u003e 1.0.0', :configurations =\u003e ['Debug']\n```\n\nThen, find `Other Swift Flags` in your target's `Build Settings`,add `DEBUG` in Debug scheme.\n\nFinally, add `DEBUG` macro in makeEye：\n\n```swift\n#if DEBUG \n    GodEye.makeEye(with: self.window!)\n#endif\n```\n\n### Carthage\nOr, if you’re using [Carthage](https://github.com/Carthage/Carthage), add GodEye to your Cartfile:\n\n``` \ngithub \"zixun/GodEye\"\n```\n\n#### Add GodEye to Embed Frameworks\nOn your application targets’ `“General”` settings tab, in the “Embed Frameworks” section, drag and drop `GodEye.framework` from the Carthage/Build folder on disk.\n\n#### Add Dependency to Linked Frameworks and Libraries\nOn your application targets’ `“General”` settings tab, in the “Linked Frameworks and Libraries” section, drag and drop the dependency framework used in GodEye from the Carthage/Build folder on disk.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./design/image/dependency.jpg\" width=\"683\" height=\"429\"/\u003e\n\u003c/p\u003e\n\n#### Add Run Script\nOn your application targets’ “Build Phases” settings tab, click the “+” icon and choose “New Run Script Phase”. Create a Run Script in which you specify your shell (ex: /bin/sh), add the following contents to the script area below the shell:\n\n```\n/usr/local/bin/carthage copy-frameworks\n```\n\nand add the paths to the frameworks you want to use under “Input Files”:\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./design/image/runscript.jpg\" width=\"690\" height=\"565\"/\u003e\n\u003c/p\u003e\n\n\n## OpenSource Application Use GodEye\n\n[CocoaChinaPlus](https://github.com/zixun/CocoaChinaPlus) is an open source application wrote by swift, now the GodEye is work well in it!\n\n## Usage\n\nimport at AppDelegate:\n\n```swift\nimport GodEye\n```\n\nmaking GodEye at `application:didFinishLaunchingWithOptions`:\n\n```ruby\nGodEye.makeEye(with:self.window!)\n```\n\nwell, make GodEye with one line code as above will use default configuration.We also can custom our configuration:\n\n```swift\nlet configuration = Configuration()\nconfiguration.command.add(command: \"test\", description: \"test command\") { () -\u003e (String) in\n    return \"this is test command result\"\n}\nconfiguration.command.add(command: \"info\", description: \"print test info\") { () -\u003e (String) in\n    return \"info\"\n}\n    \nGodEye.makeEye(with: self.window!, configuration: configuration)\n```\n\nthe example above is custom command configuration, we also can custom control and switch configuration.see detail at `ControlConfiguration` and `SwitchConfiguration`\n\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Author\n\ntwitter: [@zixun_](https://twitter.com/zixun_)\n\nemail: chenyl.exe@gmail.com\n\ngithub: [zixun](https://github.com/zixun)\n\nblog: [子循(SubCycle)](http://zixun.github.io/)\n\n## Thanks\nFirst is Github, it gives me a lot of ideas and inspiration, and even ready-made code:\n\n* Log monitor inspired by [AELog](https://github.com/tadija/AELog)\n* Crash monitor inspired by [GT](https://github.com/Tencent/GT)\n* ANR monitor inspired by [Watchdog](https://github.com/wojteklu/Watchdog)\n* Network monitor inspired by [NetworkEye](https://github.com/coderyi/NetworkEye)\n\nSecondly is StackOverFlow, it answers a lot of problems encountered in the author's writing and development,here are a few images of deep:\n\n* CPU usage of application:[ios-get-cpu-usage-from-application](https://stackoverflow.com/questions/8223348/ios-get-cpu-usage-from-application)\n* CPU usage of system:[get-cpu-percent-usage](https://stackoverflow.com/questions/6785069/get-cpu-percent-usage)\n\nFinally, thanks to several great blog:\n\n* Memory Leak inspired by MrPeak's PLeakSniffer: [http://mrpeak.cn/blog/leak](http://mrpeak.cn/blog/leak)\n* wereadteam's MLeaksFinder: [https://wereadteam.github.io/2016/02/22/MLeaksFinder](https://wereadteam.github.io/2016/02/22/MLeaksFinder)\n\n## License\n\nGodEye is available under the MIT license. See the LICENSE file for more info.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzixun%2FGodEye","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzixun%2FGodEye","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzixun%2FGodEye/lists"}