It is important for software companies to efficiently develop their code. Companies that provide software utilize engineers to create and develop their code. It is common in engineering organizations to use continuous integration environments. These environments may be tightly coupled to code revision systems. When engineers check in code, it typically automatically starts a build. A typical compilation on a local machine may take several minutes, for example five to six minutes. During this time, an engineer is typically idle. Though an engineer may check e-mail or do other tasks, it is generally more likely that an engineer will not be very productive during the build time. As such, time taken to build and compile code has a tangible cost to how quickly engineers can innovate.
It would be desirable to be increase efficiency of coding for engineers of software companies.
The present technology adds code to a top level build configuration file of a compilation program that will gather metrics for each invocation of a build. These metrics are sent to a commonly accessible metric server for future analysis. The metrics are collected for a distributed engineering team over several machines. Compilation time metrics may then be collected for each compilation event and those metrics are analyzed by a common aggregator.
An embodiment may include a method for processing data regarding a program build. The method may determine the time required to complete a build on a computing device. Build data and machine hardware data may be collected for the computing device performing the build. The build data and machine hardware data may be transmitted to a remote server. Data for a plurality of builds may be reported by the remote server, the plurality of builds done for a plurality of engineers in a distributed engineering group.
An embodiment may include a system for processing data regarding a program build. The system may include a processor, a memory and one or more modules stored in memory and executable by the processor. When executed, the one or more modules may determine the time required to complete a build on a computing device, collect build data and machine hardware data for the computing device performing the build, transmit the build data and machine hardware resource to a remote server, and report data for a plurality of builds by the remote server, the plurality of builds done for a plurality of engineers in a distributed engineering group.
The present technology adds code to a top level build configuration file of a configuration program that will gather metrics for each invocation of a build. These metrics are sent to a commonly accessible metric server for future analysis. The metrics are collected for a distributed engineering team over several machines. Compilation time metrics may then be collected for each compilation event and those metrics are analyzed by a common aggregator.
Each engineer's machine may communicate with a server 160 over network 150. Network 150 may include a private network, public network, cellular network, wireless network, or other network. Application server 160 may include aggregator 165. The server and engineer machines may communicate over network 140. Aggregator 165 may receive build and compilation data from the engineering groups, aggregate the data, and store the aggregated data in data store 180. An administrator at computing device 170 may query the aggregated data stored in data store 180.
The collector may retrieve information from the build process, other actions performed by an engineer at the machine, as well as host machine data. The engineer actions may include cleaning an environment, set-up an environment, reset applications, and deploying applications. The host machine data may include information regarding architecture 230, CPU 250, memory 240, and operating system 260.
A build is started and eventually completes at step 330. The build may complete in a successor failure. An end time stamp is collected at step 340. After collecting the start and end time stamp, local machine data may be collected at step 350. The local machine data may include information regarding machine software and hardware which may be used to provide context to the build at the local machine. Collecting local machine data is discussed in more detail below with respect to the method of
After collecting time stamp data and local machine data, the collected data is reported to aggregator 155 at step 360. The data may be reported periodically, based on a non-periodic event such as a anomaly, or some other event.
A data query may be received at some point at step 530. The query may specify a particular slice of data from the aggregated data stored at data store 160. A response is generated at step 540 and the response is then transmitted to the requesting computer 170 at step 550.
The computing system 700 of
The components shown in
Mass storage device 730, which may be implemented with a magnetic disk drive or an optical disk drive, is a non-volatile storage device for storing data and instructions for use by processor unit 710. Mass storage device 730 can store the system software for implementing embodiments of the present invention for purposes of loading that software into main memory 710.
Portable storage device 740 operates in conjunction with a portable non-volatile storage medium, such as a floppy disk, compact disk or Digital video disc, to input and output data and code to and from the computer system 700 of
Input devices 760 provide a portion of a user interface. Input devices 760 may include an alpha-numeric keypad, such as a keyboard, for inputting alpha-numeric and other information, or a pointing device, such as a mouse, a trackball, stylus, or cursor direction keys. Additionally, the system 700 as shown in
Display system 770 may include an LED, liquid crystal display (LCD) or other suitable display device. Display system 770 receives textual and graphical information, and processes the information for output to the display device.
Peripherals 780 may include any type of computer support device to add additional functionality to the computer system. For example, peripheral device(s) 780 may include a modem or a router.
The components contained in the computer system 700 of
When implementing a mobile device such as smart phone or tablet computer, the computer system 700 of
The foregoing detailed description of the technology herein has been presented for purposes of illustration and description. It is not intended to be exhaustive or to limit the technology to the precise form disclosed. Many modifications and variations are possible in light of the above teaching. The described embodiments were chosen in order to best explain the principles of the technology and its practical application to thereby enable others skilled in the art to best utilize the technology in various embodiments and with various modifications as are suited to the particular use contemplated. It is intended that the scope of the technology be defined by the claims appended hereto.
This application is a continuation of U.S. patent application Ser. No. 14/530,440, now U.S. Pat. No. 9,628,544, titled “Distributed Build and Compile Statistics,” filed, Oct. 31, 2014, the disclosure of which is incorporated herein by reference.
Number | Name | Date | Kind |
---|---|---|---|
7272820 | Klianev | Sep 2007 | B2 |
8832644 | Hirsch et al. | Sep 2014 | B2 |
20050177828 | Graham | Aug 2005 | A1 |
20070069850 | Anderson et al. | Mar 2007 | A1 |
20080288337 | Snyder | Nov 2008 | A1 |
20100205591 | Barsness | Aug 2010 | A1 |
20100262948 | Melski | Oct 2010 | A1 |
20120260240 | Arnott | Oct 2012 | A1 |
20130152047 | Moorthi et al. | Jun 2013 | A1 |
20130205278 | Hirsch | Aug 2013 | A1 |
Number | Date | Country | |
---|---|---|---|
20170220325 A1 | Aug 2017 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 14530440 | Oct 2014 | US |
Child | 15489630 | US |