GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - google/gtm_load_timer: A framework and instrument for timing Objective C +load messages.

This repository was archived by the owner on Nov 8, 2022. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
GTMLoadTimer.xcodeproj
GTMLoadTimer.xcodeproj
 
 
BUILD
BUILD
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
GTMLoadTimer.instrpkg
GTMLoadTimer.instrpkg
 
 
GTMLoadTimer.m
GTMLoadTimer.m
 
 
Info.plist
Info.plist
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

gtm_load_timer

GTMLoadTimer is a framework to instrument Objective C +load calls to see how they are contributing to your application startup time.

How to use GTMLoadTimer

  1. Add a dependency on either the GTMLoadTimer-macOS or GTMLoadTimer-iOS framework to your project.
  2. Do a build and verify that the framework is copied into the Frameworks directory of your application bundle.
  3. Build the "Instrument" target of the GTMLoadTimer project.
  4. Go to the Finder and "open" the GTMLoadTimer.instrdst package you just built. It should ask to install into Instruments.
  5. Create a new "blank" instrument in Instruments and add the "+load messages" instrument.
  6. Record your app with your instrument.

The data that you are probably most interested in is the +load messages graph which will show you timings for each of the +load messages that the framework has swizzled. The "swizzler" track is just to make you aware of the overhead of using GTMLoadTimer.

Please do not ship GTMLoadTimer in your applications.

As far as I know there is nothing that GTMLoadTimer does that breaks any of Apple's rules with regards to the AppStore in that it only uses public APIs. That being said, all it will do is slow down launch time for your end users which is not cool.

What would be cool is if Apple built this functionality into libObjc directly so that GTMLoadTimer wasn't needed at all. If you feel the same, please file a radar to let Apple know you care. Feel free to reference my radar on this issue (47260318).

Level of support

This is not an officially supported Google product.

About

A framework and instrument for timing Objective C +load messages.

Topics

googleinstrumentsloadobjective-cxcode

Resources

Readme
Apache-2.0 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

45 stars

Watchers

2 watching

Forks

3 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.